diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c989f6b9b..8c7bfe05e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,11 +52,11 @@ jobs: with: ref: ${{ (inputs.tag != '' && !inputs.dry_run ) && format('refs/tags/v{0}', inputs.tag) || github.ref }} - - name: Fetch Cached Artifacts - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + - name: Download Artifacts + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: + name: dist-${{ github.run_id }} path: ${{ github.workspace }}/dist - key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }} - name: Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10b86dd949..32ff12da38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: branches: - "**" schedule: - - cron: "0 4 * * *" # run every day at 4am UTC + - cron: "0 4 * * *" # run every day at 4am UTC (nightly builds) workflow_call: inputs: is_production_release: @@ -265,11 +265,12 @@ jobs: echo "Generated JSON: $json" echo "json=$json" >> $GITHUB_OUTPUT - - name: Cache Artifacts - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + - name: Upload Artifacts + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: + name: dist-${{ github.run_id }} path: ${{ github.workspace }}/dist - key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }} + retention-days: 1 assertion: name: Generate and Sign Assertion Documents @@ -307,11 +308,11 @@ jobs: with: go-version: stable - - name: Fetch Cached Artifacts - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + - name: Download Artifacts + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: + name: dist-${{ github.run_id }} path: ${{ github.workspace }}/dist - key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }} - name: List Dependencies in Go Binary id: godeps diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index 52711d09a7..968fc788ca 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -24,11 +24,11 @@ jobs: with: fetch-depth: 0 - - name: Fetch Cached Artifacts - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 + - name: Download Artifacts + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 with: + name: dist-${{ github.run_id }} path: ${{ github.workspace }}/dist - key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }} - name: Docker Buildx uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1