Run the shared publish action in dry-run before publishing (#18)
CI / build-and-scan (push) Successful in 1m0s

Co-authored-by: Djeex <[email protected]>
This commit was merged in pull request #18.
This commit is contained in:
Djeex authored and Djeex committed 2026-11-22 11:36:39 +01:00
1 parent 3503227234
commit 79495d2a30
1 file changed
+24
+24
View File
@@ -19,6 +19,15 @@ jobs:
fetch-depth: 0 fetch-depth: 0
persist-credentials: false 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 - name: Scan for secrets
run: | run: |
# docker cp, not a build COPY: a repo's own .dockerignore (e.g. one that # 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 \ --add-host=dockerhost:host-gateway \
aquasec/trivy:0.76.2 image --exit-code 0 --severity HIGH socat-proxy:ci 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 - name: Publish tagged image
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: | run: |