55 branches :
66 - main
77 - release-*
8+ - chore/secure-build-pipeline
89 tags :
910 - " v[0-9]+.[0-9]+.[0-9]+*"
1011 pull_request :
@@ -18,7 +19,7 @@ defaults:
1819 shell : bash
1920
2021env :
21- GOPROXY : ${{ github.repository_owner == 'nginx' && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.ref_type == 'tag') && format('https://{0}:{1}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-local-approved-dependency', secrets.ARTIFACTORY_USER, secrets.ARTIFACTORY_TOKEN) || github.repository_owner == 'nginx' && format('https://{0}:{1}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev', secrets.ARTIFACTORY_USER, secrets.ARTIFACTORY_TOKEN) || 'direct' }}
22+ GOPROXY : ${{ github.repository_owner == 'nginx' && ((github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/chore/secure-build-pipeline')) || github.ref_type == 'tag') && format('https://{0}:{1}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-local-approved-dependency', secrets.ARTIFACTORY_USER, secrets.ARTIFACTORY_TOKEN) || github.repository_owner == 'nginx' && format('https://{0}:{1}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev,direct ', secrets.ARTIFACTORY_USER, secrets.ARTIFACTORY_TOKEN) || 'direct' }}
2223
2324concurrency :
2425 group : ${{ github.ref_name }}-ci
3132 vars :
3233 name : Checks and variables
3334 runs-on : ubuntu-24.04
35+ env :
36+ # Use dev GOPROXY with fallback for CI checks (not production artifacts)
37+ GOPROXY : ${{ github.repository_owner == 'nginx' && format('https://{0}:{1}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev,direct', secrets.ARTIFACTORY_USER, secrets.ARTIFACTORY_TOKEN) || 'direct' }}
3438 outputs :
3539 go_path : ${{ steps.vars.outputs.go_path }}
3640 min_k8s_version : ${{ steps.vars.outputs.min_k8s_version }}
@@ -131,7 +135,7 @@ jobs:
131135
132136 binary :
133137 name : Build Binary
134- runs-on : ${{ github.repository_owner == 'nginx' && (github.ref_type == 'tag' || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
138+ runs-on : ${{ github.repository_owner == 'nginx' && (github.ref_type == 'tag' || (github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/chore/secure-build-pipeline') )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
135139 needs : [vars, unit-tests, njs-unit-tests]
136140 permissions :
137141 contents : write # for goreleaser/goreleaser-action and lucacome/draft-release to create/update releases
@@ -161,7 +165,7 @@ jobs:
161165 notes-header : |
162166 *Below is the auto-generated changelog, which includes all PRs that went into the release.
163167 For a shorter version that highlights only important changes, see [CHANGELOG.md](https://github.com/nginx/nginx-gateway-fabric/blob/{{version}}/CHANGELOG.md).*
164- if : ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }}
168+ if : ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/chore/secure-build-pipeline' }}
165169
166170 - name : Download Syft
167171 uses : anchore/sbom-action/download-syft@7b36ad622f042cab6f59a75c2ac24ccb256e9b45 # v0.20.4
@@ -175,14 +179,14 @@ jobs:
175179 uses : goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
176180 with :
177181 version : v2.11.2 # renovate: datasource=github-tags depName=goreleaser/goreleaser
178- args : ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
182+ args : ${{ github.ref_type == 'tag' && github.ref != 'refs/heads/chore/secure-build-pipeline' && 'release' || 'build --snapshot' }} --clean
179183 env :
180184 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
181185 GOPATH : ${{ needs.vars.outputs.go_path }}
182- AZURE_STORAGE_ACCOUNT : ${{ secrets.AZURE_STORAGE_ACCOUNT }}
183- AZURE_STORAGE_KEY : ${{ secrets.AZURE_STORAGE_KEY }}
184- AZURE_BUCKET_NAME : ${{ secrets.AZURE_BUCKET_NAME }}
185- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK_COMMUNITY }}
186+ AZURE_STORAGE_ACCOUNT : ${{ github.ref != 'refs/heads/chore/secure-build-pipeline' && secrets.AZURE_STORAGE_ACCOUNT || '' }}
187+ AZURE_STORAGE_KEY : ${{ github.ref != 'refs/heads/chore/secure-build-pipeline' && secrets.AZURE_STORAGE_KEY || '' }}
188+ AZURE_BUCKET_NAME : ${{ github.ref != 'refs/heads/chore/secure-build-pipeline' && secrets.AZURE_BUCKET_NAME || '' }}
189+ SLACK_WEBHOOK : ${{ github.ref != 'refs/heads/chore/secure-build-pipeline' && secrets.SLACK_WEBHOOK_COMMUNITY || '' }}
186190 TELEMETRY_ENDPOINT : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release-') && 'oss-dev.edge.df.f5.com:443' || 'oss.edge.df.f5.com:443' }}
187191 TELEMETRY_ENDPOINT_INSECURE : " false"
188192
@@ -288,9 +292,9 @@ jobs:
288292
289293 publish-helm :
290294 name : Package and Publish Helm Chart
291- runs-on : ${{ github.repository_owner == 'nginx' && (github.ref_type == 'tag' || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
295+ runs-on : ${{ github.repository_owner == 'nginx' && (github.ref_type == 'tag' || (github.event_name == 'push' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/chore/secure-build-pipeline') )) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
292296 needs : [vars, helm-tests]
293- if : ${{ github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-') }}
297+ if : ${{ github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-') && github.ref != 'refs/heads/chore/secure-build-pipeline' }}
294298 permissions :
295299 contents : read
296300 packages : write # for helm to push to GHCR
0 commit comments