aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2024-08-17 22:20:54 -0700
committerMax Isom <[email protected]>2024-08-17 22:20:54 -0700
commitd5f03c0df7815b9de66ad0fef15c41eddc1eb6e5 (patch)
tree5de8f686528804d7aa2b4df8cdb58bc538d406a3
parentcb5c035bbae4c3b2d2c7a8bdbffd6db409fbb9ab (diff)
downloadmuse-d5f03c0df7815b9de66ad0fef15c41eddc1eb6e5.tar.xz
muse-d5f03c0df7815b9de66ad0fef15c41eddc1eb6e5.zip
Update workflow
-rw-r--r--.github/workflows/pr-release.yml10
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/pr-release.yml b/.github/workflows/pr-release.yml
index 819441f..e4d58fd 100644
--- a/.github/workflows/pr-release.yml
+++ b/.github/workflows/pr-release.yml
@@ -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.