fix(ci): move ACT guards to step level; add guards to security.yml

env context is invalid in job-level if conditions — moved all ACT
guards down to individual steps. Also guards docker login + scout
in security.yml so act can run the build-only part of that workflow.
This commit is contained in:
jubnl
2026-05-25 21:10:36 +02:00
parent 797183de08
commit f92b95e054
3 changed files with 18 additions and 3 deletions
+8 -2
View File
@@ -174,15 +174,16 @@ jobs:
retention-days: 1
merge:
if: ${{ !env.ACT }}
runs-on: ubuntu-latest
needs: [version-bump, build]
steps:
- uses: actions/checkout@v4
if: ${{ !env.ACT }}
with:
ref: main
- name: Download build digests
if: ${{ !env.ACT }}
uses: actions/download-artifact@v4
with:
path: /tmp/digests
@@ -190,13 +191,16 @@ jobs:
merge-multiple: true
- uses: docker/setup-buildx-action@v3
if: ${{ !env.ACT }}
- uses: docker/login-action@v3
if: ${{ !env.ACT }}
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create and push multi-arch manifest
if: ${{ !env.ACT }}
working-directory: /tmp/digests
run: |
VERSION="${{ needs.version-bump.outputs.version }}"
@@ -209,19 +213,21 @@ jobs:
"${digests[@]}"
- name: Inspect manifest
if: ${{ !env.ACT }}
run: docker buildx imagetools inspect mauriceboe/trek:latest
release-helm:
if: ${{ !env.ACT }}
runs-on: ubuntu-latest
needs: version-bump
steps:
- name: Checkout
if: ${{ !env.ACT }}
uses: actions/checkout@v4
with:
ref: main
- name: Publish Helm chart
if: ${{ !env.ACT }}
uses: stefanprodan/helm-gh-pages@v1.7.0
with:
token: ${{ secrets.GITHUB_TOKEN }}