From b024dc77ef9b18854e42009746b9ed3c40e5757c Mon Sep 17 00:00:00 2001 From: wilinz <59408438+wilinz@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:15:37 +0800 Subject: [PATCH] Update deploy-docker.yml --- .github/workflows/deploy-docker.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 13d80fa..0743043 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -30,14 +30,12 @@ jobs: id: git_tag run: | git_tag=$(git describe --tags --exact-match 2>/dev/null || echo "none") - echo "::set-output name=tag::$git_tag" + echo "tag=$git_tag" >> $GITHUB_ENV - name: Build and Push Docker image run: | - docker buildx build --platform linux/amd64 \ - -f ./deploy/Dockerfile \ - -t docker.kexie.space/kexie/kexie-hello-web:${{ steps.git_tag.outputs.tag }} \ - -t docker.kexie.space/kexie/kexie-hello-web:latest \ - --push . - - + docker buildx build --platform linux/amd64 \ + -f ./deploy/Dockerfile \ + -t docker.kexie.space/kexie/kexie-hello-web:${{ env.tag }} \ + -t docker.kexie.space/kexie/kexie-hello-web:latest \ + --push .