拉去私有镜像
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
registry: https://docker.zcj.plus
# - name: prepare-deploy-file
# image: apline
# commands:
# - echo -e ""
- name: login-docker
image: appleboy/drone-ssh
settings:
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
image: docker/compose
@ -29,8 +42,8 @@ steps:
- name: dockersock
path: /var/run/docker.sock
commands:
- docker-compose up -d
- docker-compose logs -f
- up -d
- logs -f
volumes: