Run the shared publish action in dry-run before publishing
This commit is contained in:
1 parent
3503227234
commit
9ef1a4a02a
1 file changed
+24
@@ -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: |
|
||||||
|
|||||||
Reference in new issue
Block a user