From bc2c389d341915a5709fbc66c558469a7b353b8e Mon Sep 17 00:00:00 2001 From: "Jiaxiao (mossaka) Zhou" Date: Mon, 16 Dec 2024 02:19:39 +0000 Subject: [PATCH] refactor(ci): streamline image build and load steps * Replaced individual make commands with make load and make load/oci. Signed-off-by: Jiaxiao (mossaka) Zhou --- .github/workflows/release-wasi-demo-app.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-wasi-demo-app.yml b/.github/workflows/release-wasi-demo-app.yml index 69b091051..730beeab3 100644 --- a/.github/workflows/release-wasi-demo-app.yml +++ b/.github/workflows/release-wasi-demo-app.yml @@ -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: |