Update docker-image.yml

This commit is contained in:
zhenorzz 2024-01-09 17:21:39 +08:00 committed by GitHub
parent 6d295af62f
commit 62c16a7b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,6 @@ jobs:
docker version docker version
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }}
# 使用Dockerfile构建镜像 # 使用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)