@@ -270,16 +270,18 @@ jobs:
270270 with :
271271 go-version : stable
272272
273- - name : Generate Module Dependencies Info
274- id : go_deps
273+ - name : Fetch Cached Artifacts
274+ uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
275+ with :
276+ path : ${{ github.workspace }}/dist
277+ key : nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }}
278+
279+ - name : List Dependencies in Go Binary
280+ id : godeps
275281 run : |
276- echo "Generating module dependencies info..."
277- cd cmd/gateway
278- goversionm=goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt
279- go list -m all > ../../goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt
280- echo "Module dependencies saved to goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt"
281- cd ../..
282- echo "goversionm=goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt" >> $GITHUB_OUTPUT
282+ go version -m dist/gateway_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}*/gateway > goversionm_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.txt
283+ echo "goversionm=$(find -type f -name "goversionm*.txt" | head -n 1)" >> $GITHUB_OUTPUT
284+ cat $GITHUB_OUTPUT
283285
284286 - name : Generate Assertion Document
285287 id : assertiondoc
@@ -297,7 +299,7 @@ jobs:
297299 artifactory-api-token : ${{ secrets.ARTIFACTORY_TOKEN }}
298300 artifactory-url : ${{ secrets.ARTIFACTORY_URL }}
299301 artifactory-repo : ' f5-nginx-go-local-approved-dependency'
300- build-content-path : ${{ steps.go_deps .outputs.goversionm }}
302+ build-content-path : ${{ steps.godeps .outputs.goversionm }}
301303 assertion-doc-file : assertion_${{ github.event.repository.name }}_${{ github.sha }}_${{ github.run_id }}_${{ github.run_number }}_${{ matrix.gateway.os }}_${{ matrix.gateway.arch }}.json
302304
303305 - name : Sign and Store Assertion Document
0 commit comments