From ca2713b369f5ad0dca588537d1fa35fd2d0c5884 Mon Sep 17 00:00:00 2001 From: fenghao Date: Sun, 28 Apr 2024 16:13:11 +0800 Subject: [PATCH] CI --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37d95ef..3260187 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: with: node-version: "16.x" cache: 'npm' - - run: npm install + - run: npm ci - run: npm run build --if-present - name: Set up Docker Buildx @@ -36,10 +36,14 @@ jobs: echo ${{ github.repository }}:${{github.REF_NAME}}-${{github.run_id}} echo ${{ github.ACTOR }} + - run: echo 11 env.DOCKER_IMAGE ${{env.DOCKER_IMAGE}} + - run: echo 22 DOCKER_IMAGE ${DOCKER_IMAGE} + - run: echo 333 DOCKER_IMAGE $DOCKER_IMAGE + - name: build and push docker image uses: docker/build-push-action@v5 with: context: . push: true platforms: linux/amd64,linux/arm64 - tags: $DOCKER_IMAGE:${{github.REF_NAME}}-${{github.run_id}} + tags: ${{env.DOCKER_IMAGE}}:${{github.REF_NAME}}-${{github.run_id}}