Skip to content

Commit

Permalink
fix: load rechunked image after build
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 committed Sep 19, 2024
1 parent 0a61c9a commit 43083d8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,21 @@ jobs:
podman image ls

- name: Rechunk Image
id: rechunk
uses: hhd-dev/rechunk@master
with:
ref: ${{ steps.build_image.outputs.image }}@${{ env.DEFAULT_TAG }}
ref: ${{ steps.build_image.outputs.image }}:${{ env.DEFAULT_TAG }}
skip_compression: 'true'

- name: Check Post Rechunk
- name: Switch Rechunked Image Name
run: |
IMAGE=$(podman pull ${{ steps.rechunk.outputs.ref }})
sudo rm -rf ${{ steps.rechunk.outputs.output }}
for tag in ${{ steps.build_image.outputs.tags }}; do
podman tag $IMAGE ${{ env.IMAGE_NAME }}:${tag}
done
- name: Check Pre Rechunk
run:
podman image ls

Expand Down

0 comments on commit 43083d8

Please sign in to comment.