@@ -108,6 +108,11 @@ jobs:
108108 # env:
109109 # DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
110110
111+ - name : Prepare env
112+ run : |
113+ platform=${{ matrix.platform }}
114+ echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
115+
111116 - name : Build and push NGINX mainline slim Alpine image to Amazon ECR Public Gallery, Docker Hub, GitHub Container Registry, and Quay
112117 id : build
113118 uses : docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
@@ -118,7 +123,7 @@ jobs:
118123 annotations : ${{ steps.meta.outputs.annotations }}
119124 # outputs: type=image,"name=ghcr.io/nginxinc/nginx-unprivileged,docker.io/nginxinc/nginx-unprivileged",push-by-digest=true,name-canonical=true,push=true
120125 # outputs: type=image,"name=ghcr.io/nginxinc/nginx-unprivileged,docker.io/nginxinc/nginx-unprivileged",push-by-digest=true,name-canonical=true,push=true
121- outputs : type=docker,dest=${{ runner.temp }}/alpine-slim-${{ matrix.platform }}.tar
126+ outputs : type=docker,dest=${{ runner.temp }}/alpine-slim-${{ env.PLATFORM_PAIR }}.tar
122127 # tags: ${{ steps.meta.outputs.tags }}
123128 # push: false
124129 # push: ${{ github.event_name != 'pull_request' }}
@@ -128,10 +133,11 @@ jobs:
128133 - name : Upload artifact
129134 uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
130135 with :
131- name : alpine-slim-${{ matrix.platform }}
132- path : ${{ runner.temp }}/alpine-slim-${{ matrix.platform }}.tar
136+ name : alpine-slim-${{ env.PLATFORM_PAIR }}
137+ path : ${{ runner.temp }}/alpine-slim-${{ env.PLATFORM_PAIR }}.tar
133138 if-no-files-found : error
134139 retention-days : 1
140+
135141 # - name: Save image as tarball
136142 # run: |
137143 # mkdir -p ${{ runner.temp }}/images
@@ -161,10 +167,7 @@ jobs:
161167 # digest="${{ steps.build.outputs.digest }}"
162168 # touch "${{ runner.temp }}/digests/${digest#sha256:}"
163169
164- # - name: Prepare env
165- # run: |
166- # platform=${{ matrix.platform }}
167- # echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
170+
168171
169172 # - name: Upload digest
170173 # uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
0 commit comments