mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 09:12:43 +02:00
Update workflow
This commit is contained in:
parent
cb5c035bba
commit
d5f03c0df7
1 changed files with 4 additions and 6 deletions
10
.github/workflows/pr-release.yml
vendored
10
.github/workflows/pr-release.yml
vendored
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue