Skip to content

Commit 58ecd2f

Browse files
committed
hardcode goproxy in each job
1 parent a4abb56 commit 58ecd2f

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
runs-on: ${{ github.repository_owner == 'nginx' && (inputs.is_production_release || (github.event_name == 'push' && github.ref == 'refs/heads/main')) && 'ubuntu-24.04-amd64' || 'ubuntu-24.04' }}
153153
needs: [vars, unit-tests, njs-unit-tests]
154154
env:
155-
GOPROXY: ${{ needs.vars.outputs.goproxy }}
155+
GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev"
156156
outputs:
157157
json: ${{ steps.gateway_binaries.outputs.json }}
158158
permissions:
@@ -247,7 +247,8 @@ jobs:
247247
contents: read
248248
id-token: write # for compliance-rules action to sign assertion doc
249249
env:
250-
GOPROXY: ${{ needs.vars.outputs.goproxy }}
250+
GOPROXY: "https://${{ secrets.ARTIFACTORY_USER }}:${{ secrets.ARTIFACTORY_TOKEN }}@azr.artifactory.f5net.com/artifactory/api/go/f5-nginx-go-dev"
251+
251252
runs-on: ubuntu-24.04
252253
strategy:
253254
fail-fast: false
@@ -277,7 +278,7 @@ jobs:
277278
278279
- name: Generate Assertion Document
279280
id: assertiondoc
280-
uses: nginxinc/compliance-rules/.github/actions/assertion@8cc3e2d960f32aa4b77c1e719adb92228132b11b
281+
uses: nginxinc/compliance-rules/.github/actions/assertion@main
281282
with:
282283
artifact-name: ${{ github.event.repository.name }}_${{ github.sha }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}
283284
artifact-digest: ${{ matrix.gateway.digest }}
@@ -296,7 +297,7 @@ jobs:
296297

297298
- name: Sign and Store Assertion Document
298299
id: sign
299-
uses: nginxinc/compliance-rules/.github/actions/sign@8cc3e2d960f32aa4b77c1e719adb92228132b11b
300+
uses: nginxinc/compliance-rules/.github/actions/sign@main
300301
with:
301302
assertion-doc: ${{ steps.assertiondoc.outputs.assertion-document-path }}
302303

.goreleaser.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ builds:
1111
- arm64
1212
flags:
1313
- -trimpath
14-
# gcflags:
15-
# - all=-trimpath={{.Env.GOPATH}}
16-
# asmflags:
17-
# - all=-trimpath={{.Env.GOPATH}}
14+
gcflags:
15+
- all=-trimpath={{.Env.GOPATH}}
16+
asmflags:
17+
- all=-trimpath={{.Env.GOPATH}}
1818
ldflags:
1919
- -s -w
2020
- -X main.version={{.Version}}

0 commit comments

Comments
 (0)