mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-01 19:57:34 +08:00
Update docker-image.yml
This commit is contained in:
parent
6d295af62f
commit
62c16a7b3f
4
.github/workflows/docker-image.yml
vendored
4
.github/workflows/docker-image.yml
vendored
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user