Update .drone.yml
continuous-integration/drone/push Build is failing Details

This commit is contained in:
周炽键 2021-06-06 11:12:54 +08:00
parent 4a3c6d4bb6
commit edfb719d54
1 changed files with 23 additions and 19 deletions

View File

@ -18,32 +18,36 @@ steps:
# tags: latest
# registry: https://docker.zcj.plus
- name: login-docker
image: appleboy/drone-ssh
settings:
envs:
- docker_reg_username
- docker_reg_password
host:
from_secret: ssh_host
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: login-docker
# image: appleboy/drone-ssh
# settings:
# envs:
# - docker_reg_username
# - docker_reg_password
# host:
# from_secret: ssh_host
# 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
image: docker/compose
environment:
DOCKER_REG_USERNAME: docker_reg_username
DOCKER_REG_PASSWORD: docker_reg_password
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- up -d
- logs -f
- docker login -u ${DOCKER_REG_USERNAME} -p ${DOCKER_REG_PASSWORD} https://docker.zcj.plus
- docker-compose up -d
- docker-compose logs -f
volumes: