拉去私有镜像
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
547d96ea2c
commit
8c9034df30
25
.drone.yml
25
.drone.yml
|
@ -18,10 +18,23 @@ steps:
|
||||||
tags: latest
|
tags: latest
|
||||||
registry: https://docker.zcj.plus
|
registry: https://docker.zcj.plus
|
||||||
|
|
||||||
# - name: prepare-deploy-file
|
- name: login-docker
|
||||||
# image: apline
|
image: appleboy/drone-ssh
|
||||||
# commands:
|
settings:
|
||||||
# - echo -e ""
|
envs:
|
||||||
|
- docker_reg_username
|
||||||
|
- docker_reg_password
|
||||||
|
host:
|
||||||
|
from_secret: ssh_port
|
||||||
|
username:
|
||||||
|
from_secret: ssh_username
|
||||||
|
password:
|
||||||
|
from_secret: ssh_password
|
||||||
|
port:
|
||||||
|
from_secret: ssh_port
|
||||||
|
script:
|
||||||
|
- docker login -u ${DOCKER_REG_USERNAME} -p ${DOCKER_REG_PASSWORD} https://docker.zcj.plus
|
||||||
|
- docker pull docker.zcj.plus/drone-ci/fe
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker/compose
|
image: docker/compose
|
||||||
|
@ -29,8 +42,8 @@ steps:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker-compose up -d
|
- up -d
|
||||||
- docker-compose logs -f
|
- logs -f
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue