From e71537b8fe95a1f7d7e55bd81d797209f574c459 Mon Sep 17 00:00:00 2001 From: albaintor <118518828+albaintor@users.noreply.github.com> Date: Thu, 10 Oct 2024 10:27:29 +0200 Subject: [PATCH] Fix release build --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f9cfd9b..dfee766 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -234,11 +234,21 @@ jobs: npx postject ucrtool-server NODE_SEA_BLOB sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 node --experimental-sea-config sea-config.json -# - name: Build docker image -# run : | -# docker login --username albaintor --password ${{ secrets.GH_PAT }} ghcr.io -# docker build . --tag ghcr.io/albaintor/ucr-tool:latest -# docker push ghcr.io/albaintor/ucr-tool:latest + - name: Build docker image + run : | + docker login --username albaintor --password ${{ secrets.GH_PAT }} ghcr.io + docker build . --tag ghcr.io/albaintor/ucr-tool:latest + docker push ghcr.io/albaintor/ucr-tool:latest + + - name: Build and push Docker image + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: . + args: username=albaintor,password=${{ secrets.GH_PAT }} + file: Dockerfile + platforms: ${{ matrix.platforms }} + push: true + outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Unfolded Circle Toolkit - name: Login to Docker Hub uses: docker/login-action@v3 @@ -253,16 +263,6 @@ jobs: push: true tags: ${{ secrets.DOCKERHUB_USERNAME }}/uc-tool:latest -# - name: Build and push Docker image -# uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 -# with: -# context: . -# args: username=albaintor,password=${{ secrets.GH_PAT }} -# file: Dockerfile -# platforms: ${{ matrix.platforms }} -# push: true -# outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=Unfolded Circle Toolkit - - name: Prepare artifacts shell: bash run: |