File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ jobs:
167167
168168 -
169169 name : examples/simple-flask
170+ id : build_test
170171 uses : docker/build-push-action@v6
171172 env :
172173 DOCKER_BUILD_SUMMARY : false
@@ -189,6 +190,7 @@ jobs:
189190 name : Test Example
190191 env :
191192 IMAGE_URI : ' ${{ steps.image_env.outputs.EXAMPLE_IMAGE_TAG }}'
193+ IMAGE_DIGEST : ' ${{ steps.build_test.outputs.digest }}'
192194 test_command : curl -sLv 'http://localhost:8080/'
193195 run : |
194196 set -o pipefail
@@ -207,12 +209,16 @@ jobs:
207209 printf '%s)\n```\n' "$rv"
208210 cat "$T"
209211 printf '\n```\n\n### images\n\n```'
210- docker images --tree $IMAGE_URI
212+ docker images --tree $IMAGE_URI | cat
211213 printf '\n```\n'
212214 return "$rv"
213215 }
214216
215217 rc=0
218+ for platform in $(echo $TARGET_PLATFORMS | tr , '\n')
219+ do
220+ docker pull --platform $platform -q "$(echo $IMAGE_URI | rev | cut -d: -f2- | rev)@${IMAGE_DIGEST}"
221+ done
216222 docker pull -q "$IMAGE_URI"
217223 container_id="$(docker run --detach -p 8080:8080 --rm $IMAGE_URI)" || rc=$?
218224 if [ $rc -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments