拉去私有镜像
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
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue