@@ -469,48 +469,50 @@ jobs:
469469 key : nginx-ingress-release-${{ needs.variables.outputs.go_code_md5 }}
470470 if : ${{ needs.variables.outputs.binary_cache_sign_hit != 'true' }}
471471
472- # azure-upload:
473- # if: ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'azure-upload') }}
474- # name: Upload packages to Azure
475- # runs-on: ubuntu-22.04
476- # needs: [variables, binaries]
477- # permissions:
478- # id-token: write
479- # contents: read
480- # steps:
481- # - name: Checkout Repository
482- # uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
483- # with:
484- # ref: ${{ inputs.release_branch }}
472+ # Upload packages, sboms & checksums to release storage
473+ azure-upload :
474+ if : ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'azure-upload') }}
475+ name : Upload packages to Azure
476+ runs-on : ubuntu-22.04
477+ needs : [variables, binaries]
478+ permissions :
479+ id-token : write
480+ contents : read
481+ environment : release
482+ steps :
483+ - name : Checkout Repository
484+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
485+ with :
486+ ref : ${{ inputs.release_branch }}
485487
486- # - name: Fetch Cached Tarball Artifacts
487- # uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
488- # with:
489- # key: nginx-ingress-release-${{ needs.variables.outputs.go_code_md5 }}
490- # path: ${{ github.workspace }}/tarballs
491- # fail-on-cache-miss: true
488+ - name : Fetch Cached Tarball Artifacts
489+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
490+ with :
491+ key : nginx-ingress-release-${{ needs.variables.outputs.go_code_md5 }}
492+ path : ${{ github.workspace }}/tarballs
493+ fail-on-cache-miss : true
492494
493- # - name: Azure login
494- # uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
495- # with:
496- # client-id: ${{ secrets.AZURE_CLIENT_ID }}
497- # tenant-id: ${{ secrets.AZURE_TENANT_ID }}
498- # subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
495+ - name : Azure login
496+ uses : azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
497+ with :
498+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
499+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
500+ subscription-id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
499501
500- # - name: Azure Upload Release Packages
501- # uses: azure/CLI@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # v2.1.0
502- # with:
503- # inlineScript: |
504- # for i in $(find tarballs -type f); do
505- # echo -n "Uploading ${i} to kubernetes-ingress/v${{ inputs.nic_version }}/${i##*/} ... "
506- # if ${{ ! inputs.dry_run}}; then
507- # az storage blob upload --auth-mode=login -f "$i" -c ${{ secrets.AZURE_BUCKET_NAME }} \
508- # --account-name ${{ secrets.AZURE_STORAGE_ACCOUNT }} --overwrite -n kubernetes-ingress/v${{ inputs.nic_version }}/${i##*/}
509- # echo "done"
510- # else
511- # echo "skipped, dry_run."
512- # fi
513- # done
502+ - name : Azure Upload Release Packages
503+ uses : azure/CLI@089eac9d8cc39f5d003e94f8b65efc51076c9cbd # v2.1.0
504+ with :
505+ inlineScript : |
506+ for i in $(find tarballs -type f); do
507+ echo -n "Uploading ${i} to kubernetes-ingress/v${{ inputs.nic_version }}/${i##*/} ... "
508+ if ${{ ! inputs.dry_run}}; then
509+ az storage blob upload --auth-mode=login -f "$i" -c ${{ secrets.AZURE_BUCKET_NAME }} \
510+ --account-name ${{ secrets.AZURE_STORAGE_ACCOUNT }} --overwrite -n kubernetes-ingress/v${{ inputs.nic_version }}/${i##*/}
511+ echo "done"
512+ else
513+ echo "skipped, dry_run."
514+ fi
515+ done
514516
515517 github-release :
516518 if : ${{ ! cancelled() && ! failure() && ! contains(inputs.skip_step, 'github-release') }}
0 commit comments