Update .drone.yml
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
4a3c6d4bb6
commit
edfb719d54
42
.drone.yml
42
.drone.yml
|
@ -18,32 +18,36 @@ steps:
|
||||||
# tags: latest
|
# tags: latest
|
||||||
# registry: https://docker.zcj.plus
|
# registry: https://docker.zcj.plus
|
||||||
|
|
||||||
- name: login-docker
|
# - name: login-docker
|
||||||
image: appleboy/drone-ssh
|
# image: appleboy/drone-ssh
|
||||||
settings:
|
# settings:
|
||||||
envs:
|
# envs:
|
||||||
- docker_reg_username
|
# - docker_reg_username
|
||||||
- docker_reg_password
|
# - docker_reg_password
|
||||||
host:
|
# host:
|
||||||
from_secret: ssh_host
|
# from_secret: ssh_host
|
||||||
username:
|
# username:
|
||||||
from_secret: ssh_username
|
# from_secret: ssh_username
|
||||||
password:
|
# password:
|
||||||
from_secret: ssh_password
|
# from_secret: ssh_password
|
||||||
port:
|
# port:
|
||||||
from_secret: ssh_port
|
# from_secret: ssh_port
|
||||||
script:
|
# script:
|
||||||
- docker login -u ${DOCKER_REG_USERNAME} -p ${DOCKER_REG_PASSWORD} https://docker.zcj.plus
|
# - docker login -u ${DOCKER_REG_USERNAME} -p ${DOCKER_REG_PASSWORD} https://docker.zcj.plus
|
||||||
- docker pull docker.zcj.plus/drone-ci/fe
|
# - docker pull docker.zcj.plus/drone-ci/fe
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker/compose
|
image: docker/compose
|
||||||
|
environment:
|
||||||
|
DOCKER_REG_USERNAME: docker_reg_username
|
||||||
|
DOCKER_REG_PASSWORD: docker_reg_password
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- up -d
|
- docker login -u ${DOCKER_REG_USERNAME} -p ${DOCKER_REG_PASSWORD} https://docker.zcj.plus
|
||||||
- logs -f
|
- docker-compose up -d
|
||||||
|
- docker-compose logs -f
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue