Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Aug 18, 2024
1 parent e31abb8 commit e9eba84
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/pr-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
include:
- runner-platform: ubuntu-latest
build-arch: linux/amd64
tagged-platform: amd64
- runner-platform: namespace-profile-default-arm64
build-arch: linux/arm64
tagged-platform: arm64
runs-on: ${{ matrix.runner-platform }}
steps:
- name: Prepare
Expand Down Expand Up @@ -52,7 +50,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
outputs: type=docker,dest=/tmp/image.tar
outputs: type=docker,dest=/tmp/image-${{ env.PLATFORM_PAIR }}.tar
tags: ${{ steps.meta.outputs.tags }}
platforms: ${{ matrix.build-arch }}
build-args: |
Expand All @@ -65,11 +63,19 @@ jobs:
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

- name: Upload image
uses: actions/upload-artifact@v4
with:
name: image-${{ env.PLATFORM_PAIR }}
path: /tmp/image.tar
path: /tmp/image-${{ env.PLATFORM_PAIR }}.tar
if-no-files-found: error
retention-days: 1

Expand Down

0 comments on commit e9eba84

Please sign in to comment.