34 Commits

Author SHA1 Message Date
jcabillot 0e2947f477 Merge pull request 'chore(deps): update actions/checkout action to v7' (#13) from renovate/actions-checkout-7.x into master
Main Release / hadolint (push) Successful in 9s
Main Release / test (push) Successful in 17s
Main Release / build (push) Successful in 19s
Main Release / tag (push) Successful in 14s
Tag Release / hadolint (push) Successful in 11s
Tag Release / test (push) Successful in 18s
Tag Release / build-push (push) Successful in 1m4s
Reviewed-on: #13
2026-06-18 16:23:47 -04:00
renovate 23a1bb1c1f chore(deps): update actions/checkout action to v7
PR Checks / hadolint (pull_request) Successful in 9s
PR Checks / build-test (pull_request) Successful in 12s
2026-06-18 15:19:21 +00:00
jcabillot 680a4464e9 Merge pull request 'Standardize workflows to htpasswd pattern' (#12) from fix/workflow-standard into master
Main Release / hadolint (push) Successful in 8s
Main Release / test (push) Successful in 15s
Main Release / build (push) Successful in 16s
Main Release / tag (push) Successful in 15s
Tag Release / hadolint (push) Successful in 11s
Tag Release / test (push) Successful in 14s
Tag Release / build-push (push) Successful in 46s
Reviewed-on: #12
2026-06-13 22:15:43 -04:00
cloudix_mcp_server 88889b1238 fix: remove test.sh from pr.yaml (no tests/test.sh in repo)
PR Checks / hadolint (pull_request) Successful in 6s
PR Checks / build-test (pull_request) Successful in 11s
2026-06-13 20:27:01 -04:00
cloudix_mcp_server 03af674b15 fix: remove test.sh from tag.yaml test job (no tests/test.sh in repo) 2026-06-13 20:26:58 -04:00
cloudix_mcp_server b8801d0994 fix: remove test.sh from cron.yaml test job (no tests/test.sh in repo)
PR Checks / hadolint (pull_request) Failing after 4s
PR Checks / build-test (pull_request) Successful in 15s
2026-06-13 20:26:53 -04:00
cloudix_mcp_server 1ad543744e fix: remove test.sh from main.yaml test job (no tests/test.sh in repo)
PR Checks / hadolint (pull_request) Failing after 4s
PR Checks / build-test (pull_request) Successful in 16s
2026-06-13 20:26:49 -04:00
cloudix_mcp_server 93be7e4969 fix: correct all action SHAs in tag.yaml
PR Checks / hadolint (pull_request) Failing after 3s
PR Checks / build-test (pull_request) Successful in 15s
2026-06-13 19:12:46 -04:00
cloudix_mcp_server 6184c6acd7 fix: correct all action SHAs in pr.yaml
PR Checks / hadolint (pull_request) Failing after 2s
PR Checks / build-test (pull_request) Successful in 13s
2026-06-13 19:12:42 -04:00
cloudix_mcp_server 2c25d9e586 fix: correct all action SHAs in cron.yaml
PR Checks / hadolint (pull_request) Failing after 3s
PR Checks / build-test (pull_request) Failing after 3s
2026-06-13 19:12:36 -04:00
cloudix_mcp_server 531647437b fix: correct all action SHAs in main.yaml 2026-06-13 19:12:34 -04:00
Sagent 07de65c37e Standardize workflows to htpasswd pattern
PR Checks / hadolint (pull_request) Failing after 3s
PR Checks / build-test (pull_request) Failing after 2s
Transform all 4 workflow files to match the standard pattern used by
perso/htpasswd (and offlineimap):

main.yaml:
  - Rename to 'Main Release'
  - hadolint (continue-on-error, dockerfile param) → test (build ci-image, run tests)
  → build (no push, just build target image) → tag (fetch-depth 0, git auth with
    SA_TOKEN_ACTION_PUSH_TAGS, semver tagging)

cron.yaml:
  - Keep original schedule '0 0 * * *'
  - hadolint → test → build-push (get-latest-tag, metadata with -latest
    only, no :latest tag)

tag.yaml:
  - hadolint → test → build-push (type=ref,event=tag + suffix=-latest)

pr.yaml:
  - hadolint (no continue-on-error, add dockerfile param) → build-test
  - Scope to pull_request branches: [master]
  - Use ci-image pattern with buildx setup
2026-06-13 21:25:36 +00:00
jcabillot 6bd30a997e Merge pull request 'feat(ci): refactor pipelines — hadolint, PR checks, tag releases, nightly rebuild' (#11) from fix/refactor-ci-pipelines into master
Main CI / hadolint (push) Successful in 6s
Main CI / build-push (push) Successful in 32s
Main CI / test (push) Failing after 5s
Main CI / tag (push) Has been skipped
Reviewed-on: #11
2026-06-12 16:17:16 -04:00
cloudix_mcp_server fd743b2ae4 ci: remove old monolithic docker-build.yaml
PR Checks / hadolint (pull_request) Successful in 8s
PR Checks / build-test (pull_request) Successful in 12s
2026-06-12 16:08:25 -04:00
cloudix_mcp_server 2335b565eb feat(ci): add nightly rebuild workflow 2026-06-12 16:08:23 -04:00
cloudix_mcp_server a4b91304d9 feat(ci): add tag release workflow 2026-06-12 16:08:20 -04:00
cloudix_mcp_server 7f58b177e1 feat(ci): add main CI workflow with build-push, test, and tag 2026-06-12 16:08:18 -04:00
cloudix_mcp_server 338ce8054a feat(ci): add PR checks workflow with hadolint and build-test 2026-06-12 16:08:14 -04:00
jcabillot 888211c106 Merge pull request 'ci: add automatic semver tagging on merge to master' (#10) from feat/semver-tag-action into master
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 49s
Docker Build and Push / test (push) Successful in 10s
Docker Build and Push / push (push) Failing after 20s
Reviewed-on: #10
2026-06-12 13:53:07 -04:00
cloudix_mcp_server ab055b86bc fix: use JSON notation for ENTRYPOINT (DL3025)
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Successful in 28s
Docker Build and Push / test (pull_request) Successful in 14s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:48:56 -04:00
cloudix_mcp_server cb44f625da ci: add automatic semver tagging on merge to master
Docker Build and Push / lint (pull_request) Failing after 4s
Docker Build and Push / build (pull_request) Has been skipped
Docker Build and Push / test (pull_request) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 13:17:06 -04:00
jcabillot 1d539eb1d3 Merge pull request 'chore(deps): update hadolint/hadolint-action action to v3.3.0' (#9) from renovate/hadolint-hadolint-action-3.x into master
Docker Build and Push / lint (push) Successful in 6s
Docker Build and Push / build (push) Successful in 19s
Docker Build and Push / test (push) Successful in 12s
Docker Build and Push / push (push) Successful in 17s
Reviewed-on: #9
2026-06-12 07:34:02 -04:00
renovate 2c6e3b3705 chore(deps): update hadolint/hadolint-action action to v3.3.0
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 23s
Docker Build and Push / test (pull_request) Successful in 14s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-12 01:18:41 +00:00
jcabillot dfd03220ca Merge pull request 'fix: add version comments to Gitea Actions workflow' (#8) from fix/action-version-comments into master
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 19s
Docker Build and Push / test (push) Successful in 14s
Docker Build and Push / push (push) Successful in 19s
Reviewed-on: #8
2026-06-11 21:13:36 -04:00
Sagent c0242bf1c6 fix: add version comments to Gitea Actions workflow
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 17s
Docker Build and Push / test (pull_request) Successful in 9s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-11 23:11:31 +00:00
cloudix_mcp_server 6f35b863fa Merge pull request 'chore(deps): update alpine docker tag to v3.24' (#7) from renovate/alpine-3.x into master
Docker Build and Push / lint (push) Successful in 7s
Docker Build and Push / build (push) Successful in 14s
Docker Build and Push / test (push) Successful in 11s
Docker Build and Push / push (push) Successful in 20s
2026-06-10 19:18:25 -04:00
renovate ce0844714d chore(deps): update alpine docker tag to v3.24
Docker Build and Push / lint (pull_request) Successful in 6s
Docker Build and Push / build (pull_request) Successful in 17s
Docker Build and Push / test (pull_request) Successful in 9s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-10 17:39:03 +00:00
jcabillot 7d83260030 Merge pull request 'Migrate CI to 4-job pipeline with SHA-pinned actions' (#4) from feat/gitea-actions-v2 into master
Docker Build and Push / lint (push) Failing after 10m20s
Docker Build and Push / build (push) Has been skipped
Docker Build and Push / test (push) Has been skipped
Docker Build and Push / push (push) Has been skipped
Reviewed-on: #4
2026-06-09 08:34:43 -04:00
cloudix_mcp_server 8f2a9fca91 Fix hadolint: add DL3018 ignore for apk
Docker Build and Push / lint (pull_request) Successful in 7s
Docker Build and Push / build (pull_request) Successful in 51s
Docker Build and Push / test (pull_request) Successful in 10s
Docker Build and Push / push (pull_request) Has been skipped
2026-06-08 22:28:17 -04:00
cloudix_mcp_server 41d279dd4a Migrate CI to 4-job pipeline with SHA-pinned actions 2026-06-08 22:28:03 -04:00
cloudix_mcp_server b34e4da58b Add CLI smoke test for docker-dynhost 2026-06-08 22:26:44 -04:00
jcabillot 5f17819c15 Merge pull request 'chore: improve renovate dependency detection' (#3) from chore/renovate into master
Docker Build and Push / build (push) Successful in 38s
Reviewed-on: #3
2026-06-08 22:17:42 -04:00
Sagent 3dbc4af815 chore: improve renovate dependency detection
Docker Build and Push / build (pull_request) Successful in 25s
2026-06-09 02:12:45 +00:00
jcabillot 907fbd03b5 feat: add Gitea Actions workflow
Docker Build and Push / build (push) Successful in 31s
feat: add Gitea Actions workflow
2026-05-29 16:22:45 -04:00
7 changed files with 209 additions and 48 deletions
+52
View File
@@ -0,0 +1,52 @@
name: Nightly Rebuild
on:
schedule:
- cron: '0 0 * * *'
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} .
build-push:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: get-latest-tag
run: |
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
echo "tag=$TAG" >> $GITHUB_OUTPUT
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/docker-dynhost
tags: |
type=raw,value=${{ steps.get-latest-tag.outputs.tag }}-latest,enable=${{ steps.get-latest-tag.outputs.tag != '' }}
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
-46
View File
@@ -1,46 +0,0 @@
name: Docker Build and Push
on:
pull_request:
branches: [master]
push:
branches: [master]
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
images: jcabillot/dynhost
tags: |
#type=ref,event=branch
#type=ref,event=pr
#type=sha
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
+48
View File
@@ -0,0 +1,48 @@
name: Main Release
on:
push:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} .
build:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t jcabillot/docker-dynhost:${{ github.sha }} .
tag:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
- name: Configure git auth
run: |
git remote set-url origin "https://x-access-token:${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}@scm.cabillot.eu/perso/docker-dynhost.git"
- uses: anothrNick/github-tag-action@4ed44965e0db8dab2b466a16da04aec3cc312fd8 # v1.75.0
env:
GITHUB_TOKEN: ${{ secrets.SA_TOKEN_ACTION_PUSH_TAGS }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: master
WITH_V: true
GIT_API_TAGGING: false
+21
View File
@@ -0,0 +1,21 @@
name: PR Checks
on:
pull_request:
branches: [master]
jobs:
hadolint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} .
+47
View File
@@ -0,0 +1,47 @@
name: Tag Release
on:
push:
tags: ['*']
jobs:
hadolint:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- run: docker build -t ci-image:${{ github.sha }} .
build-push:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6
with:
images: jcabillot/docker-dynhost
tags: |
type=ref,event=tag
type=ref,event=tag,suffix=-latest
- uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
pull: true
+3 -2
View File
@@ -1,7 +1,8 @@
FROM alpine:3
FROM alpine:3.24
# hadolint ignore=DL3018
RUN apk add --no-cache bind-tools curl
COPY entrypoint.sh /
ENTRYPOINT /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
+38
View File
@@ -0,0 +1,38 @@
#!/bin/bash
set -euo pipefail
IMAGE="$1"
FAILED=0
PASSED=0
TMPDIR="$(mktemp -d)"
trap 'rm -rf "$TMPDIR"' EXIT
assert_eq() {
local desc="$1" expected="$2" actual="$3"
if [ "$expected" = "$actual" ]; then
echo "PASS: $desc"
PASSED=$((PASSED + 1))
else
echo "FAIL: $desc (expected '$expected', got '$actual')"
FAILED=$((FAILED + 1))
fi
}
RC=0
docker run --rm "$IMAGE" dig -v > "$TMPDIR/output" 2>&1 || RC=$?
assert_eq "dig works" "0" "$RC"
if [ -s "$TMPDIR/output" ]; then
echo "PASS: Command produces output"
PASSED=$((PASSED + 1))
else
echo "FAIL: Command produces no output"
FAILED=$((FAILED + 1))
fi
echo ""
echo "$PASSED/$((PASSED + FAILED)) tests passed"
if [ "$FAILED" -gt 0 ]; then
exit 1
fi