Commit bd0114a3 authored by lipengcheng 's avatar lipengcheng

xxx

parent 9395bb0b
# image: docker
image: docker:latest
services:
- docker:dind
variables:
DOCKER_HOST: tcp://localhost:2375
......@@ -54,11 +56,11 @@ job-build-image:
- docker -v
- systemctl status docker
# - export DOCKER_HOST="tcp://localhost:2375"
- sudo docker build -t mouldvuecli3 .
- sudo docker login -u $DockerUser -p $DockerPwd
- sudo docker build -t $ImageName .
- sudo docker push $ImageName
- sudo docker rmi $ImageName
- docker build -t mouldvuecli3 .
- docker login -u $DockerUser -p $DockerPwd
- docker build -t $ImageName .
- docker push $ImageName
- docker rmi $ImageName
- echo '镜像上传完毕...'
# 登录部署服务器拉取镜像并启动
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment