Update workflow

This commit is contained in:
Max Isom 2024-08-17 22:20:54 -07:00
parent cb5c035bba
commit d5f03c0df7
No known key found for this signature in database

View file

@ -32,10 +32,9 @@ jobs:
- name: Load image
shell: bash
id: load-image
run: |
echo "AMD64_IMAGE_SHA=$(docker image import --platform linux/amd64 /tmp/images/image-linux-amd64.tar)" >> $GITHUB_ENV
echo "ARM64_IMAGE_SHA=$(docker image import --platform linux/arm64 /tmp/images/image-linux-arm64.tar)" >> $GITHUB_ENV
docker load -i /tmp/images/image-linux-amd64.tar
docker load -i /tmp/images/image-linux-arm64.tar
- name: Download Docker metadata
uses: actions/download-artifact@v4
@ -85,8 +84,7 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(cat /tmp/metadata/metadata/metadata.json | jq -cr '.tags | map("-t " + .) | join(" ")') \
$(echo ${{ steps.load-image.outputs.AMD64_IMAGE_SHA }} | sed 's/sha256://g' | tr '\n' ' ') \
$(echo ${{ steps.load-image.outputs.ARM64_IMAGE_SHA }} | sed 's/sha256://g' | tr '\n' ' ')
$(printf '%s ' *)
- name: Create comment
uses: marocchino/sticky-pull-request-comment@v2
@ -96,7 +94,7 @@ jobs:
message: |
#### :package: :robot: A new release has been made for this pull request.
To play around with this PR, pull `${{ env.REGISTRY_IMAGE }}:pr-${{ github.event.number }}` or `${{ env.REGISTRY_IMAGE }}:${{ github.event.pull_request.head.sha }}`.
To play around with this PR, pull `${{ env.REGISTRY_IMAGE }}:pr-${{ steps.pull_request_number_reader.outputs.content }}` or `${{ env.REGISTRY_IMAGE }}:${{ github.event.pull_request.head.sha }}`.
Images are available for x86_64 and ARM64.