ci: fix invalid secrets syntax in job-level if
Some checks are pending
Checkout test / test (push) Waiting to run
Documentation / build-and-publish (push) Waiting to run
Test / test (push) Successful in 1s

This commit is contained in:
Jeremie Fraeys 2026-02-12 13:18:59 -05:00
parent 19853dbdf6
commit d3f1a1841a
No known key found for this signature in database

View file

@ -21,7 +21,7 @@ env:
jobs:
test:
name: Test
runs-on: ubuntu-latest
runs-on: self-hosted
timeout-minutes: 30
services:
@ -109,7 +109,7 @@ jobs:
dev-smoke:
name: Dev Compose Smoke Test
runs-on: ubuntu-latest
runs-on: self-hosted
needs: test
timeout-minutes: 20
@ -122,7 +122,7 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: self-hosted
needs: test
timeout-minutes: 15
@ -184,7 +184,7 @@ jobs:
test-scripts:
name: Test Scripts
runs-on: ubuntu-latest
runs-on: self-hosted
needs: test
timeout-minutes: 15
@ -209,7 +209,7 @@ jobs:
security-scan:
name: Security Scan
runs-on: ubuntu-latest
runs-on: self-hosted
timeout-minutes: 20
steps:
@ -239,12 +239,19 @@ jobs:
docker-build:
name: Docker Build
runs-on: ubuntu-latest
runs-on: self-hosted
needs: [test, build, test-scripts]
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && secrets.GHCR_TOKEN != ''
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
timeout-minutes: 30
steps:
- name: Check Docker registry secret
run: |
if [ -z "${{ secrets.GHCR_TOKEN }}" ]; then
echo "GHCR_TOKEN not set, skipping Docker build"
exit 0
fi
- name: Checkout code
uses: actions/checkout@v5