From 62c16a7b3fca0cee60614854e977551c28c7b004 Mon Sep 17 00:00:00 2001 From: zhenorzz Date: Tue, 9 Jan 2024 17:21:39 +0800 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 39a1517..a748000 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -22,6 +22,6 @@ jobs: docker version docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} # 使用Dockerfile构建镜像 - docker build -t zhenorzz/goploy:${{ steps.get_version.outputs.VERSION }} . --file docker/Dockerfile + docker build -t zhenorzz/goploy:$(git describe --tags --abbrev=0) . --file docker/Dockerfile # 推送镜像到镜像仓库 - docker push zhenorzz/goploy:${{ steps.get_version.outputs.VERSION }} + docker push zhenorzz/goploy:$(git describe --tags --abbrev=0)