Compare commits

..

30 Commits

Author SHA1 Message Date
jcabillot 27ddc349d9 Merge pull request 'chore(deps): update docker/build-push-action action to v7.3.0' (#16) from renovate/docker-build-push-action-7.x into master
Main - Docker Build, Push & Tag / hadolint (push) Successful in 8s
Main - Docker Build, Push & Tag / build-push (push) Successful in 1m1s
Main - Docker Build, Push & Tag / tag (push) Failing after 18s
Reviewed-on: #16
2026-07-01 16:21:07 -04:00
renovate a7a32ee0f9 chore(deps): update docker/build-push-action action to v7.3.0
PR - Docker Build / hadolint (pull_request) Successful in 10s
PR - Docker Build / build (pull_request) Successful in 2m1s
2026-07-01 15:10:30 +00:00
jcabillot e1f07b548d Merge pull request 'chore(deps): update binwiederhier/ntfy docker tag to v2.25.0' (#15) from renovate/binwiederhier-ntfy-2.x into master
Main - Docker Build, Push & Tag / hadolint (push) Successful in 9s
Main - Docker Build, Push & Tag / build-push (push) Successful in 55s
Main - Docker Build, Push & Tag / tag (push) Failing after 10s
Reviewed-on: #15
2026-06-26 11:20:37 -04:00
renovate 0e606383c2 chore(deps): update binwiederhier/ntfy docker tag to v2.25.0
PR - Docker Build / hadolint (pull_request) Successful in 7s
PR - Docker Build / build (pull_request) Successful in 25s
2026-06-24 23:54:23 +00:00
jcabillot 443b5eb08d Merge pull request 'chore(deps): update actions/checkout action to v7' (#14) from renovate/actions-checkout-7.x into master
Main - Docker Build, Push & Tag / hadolint (push) Successful in 10s
Main - Docker Build, Push & Tag / build-push (push) Successful in 1m1s
Main - Docker Build, Push & Tag / tag (push) Failing after 13s
Reviewed-on: #14
2026-06-18 16:23:06 -04:00
renovate 9630e95448 chore(deps): update actions/checkout action to v7
PR - Docker Build / hadolint (pull_request) Successful in 7s
PR - Docker Build / build (pull_request) Successful in 30s
2026-06-18 15:23:58 +00:00
jcabillot 166fc56806 Merge pull request 'CI: Refactor CI pipelines — split into targeted workflows + hadolint' (#13) from fix/refactor-ci-pipelines into master
Main - Docker Build, Push & Tag / hadolint (push) Successful in 8s
Main - Docker Build, Push & Tag / build-push (push) Successful in 1m6s
Main - Docker Build, Push & Tag / tag (push) Failing after 9s
Reviewed-on: #13
2026-06-12 20:21:11 -04:00
cloudix_mcp_server 7a6ff2f886 ci: remove Jenkinsfile — migrated to Gitea Actions workflows
PR - Docker Build / hadolint (pull_request) Successful in 7s
PR - Docker Build / build (pull_request) Successful in 31s
2026-06-12 19:51:21 -04:00
cloudix_mcp_server 8e083428e5 fix(ci): use docker run for hadolint instead of docker:// action
PR - Docker Build / hadolint (pull_request) Successful in 6s
PR - Docker Build / build (pull_request) Successful in 27s
2026-06-12 19:48:18 -04:00
cloudix_mcp_server 8d2ebf23e0 fix(ci): use docker run for hadolint instead of docker:// action
PR - Docker Build / build (pull_request) Successful in 28s
PR - Docker Build / hadolint (pull_request) Successful in 6s
2026-06-12 19:48:14 -04:00
cloudix_mcp_server c230b9085f fix(ci): use docker run for hadolint instead of docker:// action
PR - Docker Build / hadolint (pull_request) Successful in 7s
PR - Docker Build / build (pull_request) Successful in 30s
2026-06-12 19:48:11 -04:00
cloudix_mcp_server 76f0119029 fix(ci): use docker run for hadolint instead of docker:// action 2026-06-12 19:48:08 -04:00
cloudix_mcp_server edfa3df1ca feat(ci): add cron workflow with latest+sha build-push
PR - Docker Build / hadolint (pull_request) Failing after 7s
PR - Docker Build / build (pull_request) Successful in 24s
2026-06-12 19:46:15 -04:00
cloudix_mcp_server 687aa1c2a0 feat(ci): add tag workflow with build-push 2026-06-12 19:46:11 -04:00
cloudix_mcp_server 784716ef31 feat(ci): add main branch workflow with build-push and tag 2026-06-12 19:46:07 -04:00
cloudix_mcp_server c939db05f5 feat(ci): add PR workflow with hadolint and build 2026-06-12 19:46:00 -04:00
cloudix_mcp_server c3f14df861 refactor: remove old combined workflow in favor of split CI pipelines 2026-06-12 19:45:39 -04:00
jcabillot cb7405c482 Merge pull request 'ci: add automatic semver tagging on merge to master' (#12) from feat/semver-tag-action into master
Docker Build and Push / build (push) Failing after 1m27s
Reviewed-on: #12
2026-06-12 13:40:55 -04:00
cloudix_mcp_server 745a34c524 ci: add automatic semver tagging on merge to master
Docker Build and Push / build (pull_request) Successful in 3m21s
2026-06-12 13:20:24 -04:00
jcabillot a50210db32 Merge pull request 'chore: remove all pushbullet references' (#11) from chore/remove-pushbullet into master
Docker Build and Push / build (push) Successful in 43s
Reviewed-on: #11
2026-06-11 08:13:19 -04:00
Sagent 4e074608f5 chore: remove all pushbullet references
Docker Build and Push / build (pull_request) Successful in 30s
2026-06-11 12:12:25 +00:00
cloudix_mcp_server 2b5e3ceb63 Merge pull request 'Update dependency xmltodict to v1' (#5) from renovate/xmltodict-1.x into master
Docker Build and Push / build (push) Successful in 1m14s
2026-06-10 19:23:18 -04:00
jcabillot 2a31917f3c Merge pull request 'Migrate Renovate config' (#10) from renovate/migrate-config into master
Reviewed-on: #10
2026-06-09 14:11:57 -04:00
jcabillot 47eb3d7828 Merge pull request 'Update python Docker tag to v3.14' (#9) from renovate/python-3.x into master
Docker Build and Push / build (push) Successful in 1m1s
Reviewed-on: #9
2026-06-09 14:11:32 -04:00
renovate c9561311af Migrate config renovate.json
Docker Build and Push / build (pull_request) Successful in 39s
2026-06-09 18:09:50 +00:00
renovate 4db311b069 Update python Docker tag to v3.14
Docker Build and Push / build (pull_request) Successful in 40s
2026-06-09 18:09:35 +00:00
jcabillot 6cb2925d85 Merge pull request 'chore: improve renovate dependency detection' (#7) from chore/renovate into master
Docker Build and Push / build (push) Successful in 2m32s
Reviewed-on: #7
2026-06-09 14:04:04 -04:00
jcabillot e850e9e502 Merge pull request 'Pin dependencies' (#8) from renovate/pin-dependencies into master
Docker Build and Push / build (push) Successful in 57s
Reviewed-on: #8
2026-06-09 11:59:27 -04:00
Sagent 7e1314b703 chore: improve renovate dependency detection
Docker Build and Push / build (pull_request) Successful in 33s
2026-06-09 12:55:04 +00:00
renovate 3b76ecd5ec Update dependency xmltodict to v1
perso/huawei-3G-SMS-API/pipeline/pr-master This commit looks good
2026-05-27 00:33:01 +00:00
9 changed files with 194 additions and 66 deletions
@@ -1,25 +1,33 @@
name: Docker Build and Push name: Cron - Docker Build & Push
on: on:
pull_request:
branches: [master]
push:
branches: [master]
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
jobs: jobs:
build: hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Hadolint Dockerfile
continue-on-error: true
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace hadolint/hadolint:v2.12.0 hadolint Dockerfile
build-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4 uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Login to Docker Hub - name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4 uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -31,16 +39,14 @@ jobs:
with: with:
images: jcabillot/huawei-3g-sms-api images: jcabillot/huawei-3g-sms-api
tags: | tags: |
#type=ref,event=branch type=raw,value=latest,enable=true
#type=ref,event=pr type=sha
#type=sha
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
- name: Build and push - name: Build and push
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7 uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with: with:
context: . context: .
push: ${{ github.event_name != 'pull_request' }} push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
pull: true pull: true
+69
View File
@@ -0,0 +1,69 @@
name: Main - Docker Build, Push & Tag
on:
push:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Hadolint Dockerfile
continue-on-error: true
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace hadolint/hadolint:v2.12.0 hadolint Dockerfile
build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Login to Docker Hub
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/huawei-3g-sms-api
tags: |
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
- name: Build and push
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
tag:
runs-on: ubuntu-latest
needs: [build-push]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Bump version and push tag
uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
WITH_V: true
GIT_API_TAGGING: false
+36
View File
@@ -0,0 +1,36 @@
name: PR - Docker Build
on:
pull_request:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Hadolint Dockerfile
continue-on-error: true
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace hadolint/hadolint:v2.12.0 hadolint Dockerfile
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Build
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: false
tags: jcabillot/huawei-3g-sms-api:${{ github.sha }}
pull: true
+52
View File
@@ -0,0 +1,52 @@
name: Tag - Docker Build & Push
on:
push:
tags:
- '*'
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Hadolint Dockerfile
continue-on-error: true
run: docker run --rm -v ${{ github.workspace }}:/workspace -w /workspace hadolint/hadolint:v2.12.0 hadolint Dockerfile
build-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- name: Login to Docker Hub
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/huawei-3g-sms-api
tags: |
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
+3 -3
View File
@@ -1,12 +1,12 @@
# syntax=docker.io/docker/dockerfile:1 # syntax=docker.io/docker/dockerfile:1
FROM "python:3.11-alpine" AS pipdependencies FROM python:3.14-alpine AS pipdependencies
COPY app/requirements.txt /requirements.txt COPY app/requirements.txt /requirements.txt
RUN pip3 install --no-cache-dir --user --requirement requirements.txt RUN pip3 install --no-cache-dir --user --requirement requirements.txt
FROM "python:3.11-alpine" FROM python:3.14-alpine
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>" LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
# TODO: à tester # TODO: à tester
@@ -19,7 +19,7 @@ WORKDIR "/app"
ENTRYPOINT [ "/app/entrypoint.sh" ] ENTRYPOINT [ "/app/entrypoint.sh" ]
COPY --from=binwiederhier/ntfy:v2.24.0 /usr/bin/ntfy /usr/local/bin/ntfy COPY --from=binwiederhier/ntfy:v2.25.0 /usr/bin/ntfy /usr/local/bin/ntfy
RUN mkdir /etc/ntfy RUN mkdir /etc/ntfy
COPY --from=pipdependencies /root/.local /root/.local COPY --from=pipdependencies /root/.local /root/.local
Vendored
-38
View File
@@ -1,38 +0,0 @@
pipeline {
environment {
registry = 'https://registry.hub.docker.com'
registryCredential = 'dockerhub_jcabillot'
dockerImage = 'jcabillot/huawei-3g-sms-api'
}
agent any
triggers {
cron('@midnight')
}
stages {
stage('Clone repository') {
steps{
checkout scm
}
}
stage('Build image') {
steps{
sh 'docker build --force-rm --no-cache --pull -t ${dockerImage} .'
}
}
stage('Deploy Image') {
steps{
script {
withCredentials([usernamePassword(credentialsId: 'dockerhub_jcabillot', usernameVariable: 'DOCKER_USER', passwordVariable: 'DOCKER_PASS')]) {
sh 'docker login --username ${DOCKER_USER} --password ${DOCKER_PASS}'
sh 'docker push ${dockerImage}'
}
}
}
}
}
}
+1 -2
View File
@@ -1,2 +1 @@
pushbullet.py==0.11.0 xmltodict==1.0.4
xmltodict==0.12.0
-9
View File
@@ -6,13 +6,8 @@ import xmltodict
import requests import requests
import json import json
import time import time
# TODO: disabled api excess
#from pushbullet import Pushbullet
import subprocess import subprocess
# TODO: disabled api excess
#pb = Pushbullet(os.environ['PB_APIKEY'])
pin = os.environ['PIN'] pin = os.environ['PIN']
PIN_ENTER_TEMPLATE = '''<request> PIN_ENTER_TEMPLATE = '''<request>
@@ -162,10 +157,6 @@ if __name__ == "__main__":
# Text # Text
f3.write(messages[i] + '\n') f3.write(messages[i] + '\n')
# Pushbullet
print('# Notif pushbullet')
# TODO: disabled api excess
#pb.push_note("SMS", "From: %s\nDate: %s\n%s" % (messagesR[i]['Phone'], messagesR[i]['Date'], messagesR[i]['Content']))
# NTFY # NTFY
# TODO: exec ntfy publish # TODO: exec ntfy publish
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"description": "Track ntfy binary in COPY --from",
"managerFilePatterns": ["/^Dockerfile$/"],
"matchStrings": ["COPY --from=binwiederhier/ntfy:(?<currentValue>[^\\s]+)"],
"depNameTemplate": "binwiederhier/ntfy",
"datasourceTemplate": "docker"
}
]
}