mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Split final buildx into multiple steps
This commit is contained in:
parent
290e6f6207
commit
e40d7ef483
1 changed files with 4 additions and 2 deletions
|
@ -143,6 +143,7 @@ jobs:
|
||||||
digest="${{ steps.build.outputs.digest }}"
|
digest="${{ steps.build.outputs.digest }}"
|
||||||
touch "/tmp/digests/${digest#sha256:}"
|
touch "/tmp/digests/${digest#sha256:}"
|
||||||
echo "Created /tmp/digests/${digest#sha256:}"
|
echo "Created /tmp/digests/${digest#sha256:}"
|
||||||
|
shell: bash
|
||||||
-
|
-
|
||||||
name: Upload ${{ matrix.info.platform }} digest
|
name: Upload ${{ matrix.info.platform }} digest
|
||||||
uses: https://github.com/actions/upload-artifact@v3
|
uses: https://github.com/actions/upload-artifact@v3
|
||||||
|
@ -203,8 +204,9 @@ jobs:
|
||||||
name: Create manifest list and push
|
name: Create manifest list and push
|
||||||
working-directory: /tmp/digests
|
working-directory: /tmp/digests
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
|
tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
|
||||||
$(printf "${{ env.REGISTRY_IMAGE }}@sha256:%s " *)
|
images=$(printf "${{ env.REGISTRY_IMAGE }}@sha256:%s " *)
|
||||||
|
docker buildx imagetools create "${tags}" "${images}"
|
||||||
shell: bash
|
shell: bash
|
||||||
-
|
-
|
||||||
name: Inspect Image
|
name: Inspect Image
|
||||||
|
|
Loading…
Reference in a new issue