aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2024-08-18 15:43:55 -0700
committerMax Isom <[email protected]>2024-08-18 15:43:55 -0700
commit0978d40e9517e633555d619b003c3119d7a0042c (patch)
tree8040c2adde413d9506b6552baa214134610a9684 /.github/workflows
parent62b569d26b4b13708f4d3a2b38b857d4bcad63af (diff)
downloadmuse-0978d40e9517e633555d619b003c3119d7a0042c.tar.xz
muse-0978d40e9517e633555d619b003c3119d7a0042c.zip
Update workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/pr-release.yml17
1 files changed, 8 insertions, 9 deletions
diff --git a/.github/workflows/pr-release.yml b/.github/workflows/pr-release.yml
index 007a270..cfc492d 100644
--- a/.github/workflows/pr-release.yml
+++ b/.github/workflows/pr-release.yml
@@ -51,16 +51,15 @@ jobs:
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GH_PAT }}
- - name: Read the sha.txt file
- id: sha_reader
- uses: juliangruber/[email protected]
- with:
- path: /tmp/SHA/sha/sha.txt
+ - name: Read SHA
+ shell: bash
+ run: |
+ echo "SHA=$(cat /tmp/SHA/sha/sha.txt | tr -d '\n')" >> $GITHUB_ENV
- name: Push images
run: |
- docker push ${{ env.REGISTRY_IMAGE }}:${{ steps.sha_reader.outputs.content }}-amd64
- docker push ${{ env.REGISTRY_IMAGE }}:${{ steps.sha_reader.outputs.content }}-arm64
+ docker push ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-amd64
+ docker push ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-arm64
- name: Download Docker metadata
uses: actions/download-artifact@v4
@@ -93,7 +92,7 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
- docker buildx imagetools create $(cat /tmp/metadata/metadata/metadata.json | jq -cr '.tags | map("-t " + .) | join(" ")') ${{ env.REGISTRY_IMAGE }}:${{ steps.sha_reader.outputs.content }}-amd64 ${{ env.REGISTRY_IMAGE }}:${{ steps.sha_reader.outputs.content }}-arm64
+ docker buildx imagetools create $(cat /tmp/metadata/metadata/metadata.json | jq -cr '.tags | map("-t " + .) | join(" ")') ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-amd64 ${{ env.REGISTRY_IMAGE }}:${{ env.SHA }}-arm64
- name: Create comment
uses: marocchino/sticky-pull-request-comment@v2
@@ -107,4 +106,4 @@ jobs:
Images are available for x86_64 and ARM64.
- > Latest commit: ${{ steps.sha_reader.outputs.content }}
+ > Latest commit: ${{ env.SHA }}