Skip to content

Commit

Permalink
refactor(ci): streamline image build and load steps
Browse files Browse the repository at this point in the history
* Replaced individual make commands with make load and make load/oci.

Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
  • Loading branch information
Mossaka committed Dec 16, 2024
1 parent 9f0a4f7 commit bc2c389
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release-wasi-demo-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,9 @@ jobs:
override: true
- name: Build oci tarballs
run: |
make test-image
make test-image/oci
ls -l dist/
- run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Load tarballs to ctr
run: |
sudo ctr image import dist/img.tar
sudo ctr image import dist/img-oci.tar
sudo ctr image import dist/img-oci-artifact.tar
make load
make load/oci
sudo ctr image ls
- name: Push images to ghcr.io
if: ${{ inputs.dry_run == false }}
run: |
Expand Down

0 comments on commit bc2c389

Please sign in to comment.