拉去私有镜像
continuous-integration/drone/push Build is failing Details

This commit is contained in:
周炽键 2021-06-06 10:56:41 +08:00
parent 547d96ea2c
commit 8c9034df30
1 changed files with 19 additions and 6 deletions

View File

@ -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: