mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 17:22:42 +02:00
Update workflow
This commit is contained in:
parent
7f274980b5
commit
62b569d26b
1 changed files with 15 additions and 15 deletions
30
.github/workflows/pr-release.yml
vendored
30
.github/workflows/pr-release.yml
vendored
|
@ -43,23 +43,24 @@ jobs:
|
||||||
docker load -i /tmp/images/image-linux-amd64.tar
|
docker load -i /tmp/images/image-linux-amd64.tar
|
||||||
docker load -i /tmp/images/image-linux-arm64.tar
|
docker load -i /tmp/images/image-linux-arm64.tar
|
||||||
|
|
||||||
- name: Download digests
|
- name: Download SHA
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: /tmp/digests
|
path: /tmp/SHA
|
||||||
pattern: digests-*
|
pattern: sha
|
||||||
merge-multiple: true
|
|
||||||
run-id: ${{ github.event.workflow_run.id }}
|
run-id: ${{ github.event.workflow_run.id }}
|
||||||
github-token: ${{ secrets.GH_PAT }}
|
github-token: ${{ secrets.GH_PAT }}
|
||||||
|
|
||||||
- name: Push images
|
- name: Read the sha.txt file
|
||||||
working-directory: /tmp/digests
|
id: sha_reader
|
||||||
run: |
|
uses: juliangruber/read-file-action@v1.0.0
|
||||||
for file in ./*; do
|
with:
|
||||||
hash=$(basename "$file")
|
path: /tmp/SHA/sha/sha.txt
|
||||||
|
|
||||||
docker push "sha256:$hash"
|
- name: Push images
|
||||||
done
|
run: |
|
||||||
|
docker push ${{ env.REGISTRY_IMAGE }}:${{ steps.sha_reader.outputs.content }}-amd64
|
||||||
|
docker push ${{ env.REGISTRY_IMAGE }}:${{ steps.sha_reader.outputs.content }}-arm64
|
||||||
|
|
||||||
- name: Download Docker metadata
|
- name: Download Docker metadata
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -92,8 +93,7 @@ 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 $(cat /tmp/metadata/metadata/metadata.json | jq -cr '.tags | map("-t " + .) | join(" ")') \
|
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
|
||||||
$(printf 'sha256:%s ' *)
|
|
||||||
|
|
||||||
- name: Create comment
|
- name: Create comment
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2
|
||||||
|
@ -103,8 +103,8 @@ jobs:
|
||||||
message: |
|
message: |
|
||||||
#### :package: :robot: A new release has been made for this pull request.
|
#### :package: :robot: A new release has been made for this pull request.
|
||||||
|
|
||||||
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 }}`.
|
To play around with this PR, pull `${{ env.REGISTRY_IMAGE }}:pr-${{ steps.pull_request_number_reader.outputs.content }}`.
|
||||||
|
|
||||||
Images are available for x86_64 and ARM64.
|
Images are available for x86_64 and ARM64.
|
||||||
|
|
||||||
> Latest commit: ${{ github.event.pull_request.head.sha }}
|
> Latest commit: ${{ steps.sha_reader.outputs.content }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue