From 9ef1a4a02ab146ad8f1289690f858b57f77abcc4 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 22 Nov 2026 10:32:59 +0000 Subject: [PATCH 1/3] Run the shared publish action in dry-run before publishing --- .gitea/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4212503..fea0ff2 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -19,6 +19,15 @@ jobs: fetch-depth: 0 persist-credentials: false + - name: Get shared actions + uses: actions/checkout@v7 + with: + repository: labeex/cicdeex + ref: 1.0.0 + token: ${{ secrets.CICDEEX_TOKEN }} + path: .cicdeex + persist-credentials: false + - name: Scan for secrets run: | # docker cp, not a build COPY: a repo's own .dockerignore (e.g. one that @@ -103,6 +112,21 @@ jobs: --add-host=dockerhost:host-gateway \ aquasec/trivy:0.76.2 image --exit-code 0 --severity HIGH socat-proxy:ci + # Pilot: the shared publish action in dry-run, before the real publish, + # to compare its output with what the step below really does. + - name: Publish dry-run (cicdeex pilot) + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + continue-on-error: true + uses: ./.cicdeex/publish + with: + image: socat-proxy:ci + paths: '^(Dockerfile|entrypoint\.sh|VERSION)$' + push-token: ${{ secrets.CI_PUSH_TOKEN }} + registry-token: ${{ secrets.REGISTRY_TOKEN }} + github-mirror: "true" + github-token: ${{ secrets.GH_TOKEN }} + dry-run: "true" + - name: Publish tagged image if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | -- 2.54.1 From 6d1aff69eded06f3c511c81c4497713d6c65dc47 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 22 Nov 2026 10:32:59 +0000 Subject: [PATCH 2/3] Exercise the dry-run on the pull request --- .gitea/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index fea0ff2..e2c057a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -127,6 +127,20 @@ jobs: github-token: ${{ secrets.GH_TOKEN }} dry-run: "true" + # Temporary: exercise the whole dry-run on this pull request. + - name: Publish dry-run on the pull request (temporary) + if: github.event_name == 'pull_request' + uses: ./.cicdeex/publish + with: + image: socat-proxy:ci + paths: '.' + branch: main + push-token: ${{ secrets.CI_PUSH_TOKEN }} + registry-token: ${{ secrets.REGISTRY_TOKEN }} + github-mirror: "true" + github-token: ${{ secrets.GH_TOKEN }} + dry-run: "true" + - name: Publish tagged image if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | -- 2.54.1 From 01f310a5893c3d15e7d8cdf199cdf62327e62686 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 22 Nov 2026 10:34:42 +0000 Subject: [PATCH 3/3] Drop the temporary pull request dry-run --- .gitea/workflows/ci.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e2c057a..fea0ff2 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -127,20 +127,6 @@ jobs: github-token: ${{ secrets.GH_TOKEN }} dry-run: "true" - # Temporary: exercise the whole dry-run on this pull request. - - name: Publish dry-run on the pull request (temporary) - if: github.event_name == 'pull_request' - uses: ./.cicdeex/publish - with: - image: socat-proxy:ci - paths: '.' - branch: main - push-token: ${{ secrets.CI_PUSH_TOKEN }} - registry-token: ${{ secrets.REGISTRY_TOKEN }} - github-mirror: "true" - github-token: ${{ secrets.GH_TOKEN }} - dry-run: "true" - - name: Publish tagged image if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | -- 2.54.1