@@ -17,6 +17,9 @@ defaults:
1717 run :
1818 shell : bash
1919
20+ env :
21+ GOPROXY : ${{ 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+
2023concurrency :
2124 group : ${{ github.ref_name }}-ci
2225 cancel-in-progress : true
@@ -128,7 +131,7 @@ jobs:
128131
129132 binary :
130133 name : Build Binary
131- runs-on : ubuntu-24.04
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' }}
132135 needs : [vars, unit-tests, njs-unit-tests]
133136 permissions :
134137 contents : write # for goreleaser/goreleaser-action and lucacome/draft-release to create/update releases
@@ -148,6 +151,12 @@ jobs:
148151 go.sum
149152 .github/.cache/buster-for-binary
150153
154+ - name : Set Go module cache
155+ run : |
156+ mkdir -p ${{ github.workspace }}/.gocache
157+ echo "GOMODCACHE=${{ github.workspace }}/.gocache" >> $GITHUB_ENV
158+ echo "GOCACHE=${{ github.workspace }}/.gocache" >> $GITHUB_ENV
159+
151160 - name : Create/Update Draft
152161 uses : lucacome/draft-release@00f74370c044c322da6cb52acc707d62c7762c71 # v1.2.4
153162 with :
@@ -285,7 +294,7 @@ jobs:
285294
286295 publish-helm :
287296 name : Package and Publish Helm Chart
288- runs-on : ubuntu-24.04
297+ 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' }}
289298 needs : [vars, helm-tests]
290299 if : ${{ github.event_name == 'push' && ! startsWith(github.ref, 'refs/heads/release-') }}
291300 permissions :
0 commit comments