Update .drone.yml
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
5099214bc4
commit
c670138728
15
.drone.yml
15
.drone.yml
|
@ -5,6 +5,12 @@ name: vue-admin
|
|||
trigger:
|
||||
branch: ci
|
||||
|
||||
environment:
|
||||
DOCKER_REG_USERNAME:
|
||||
from_secret: docker_reg_username
|
||||
DOCKER_REG_PASSWORD:
|
||||
from_secret: docker_reg_password
|
||||
|
||||
steps:
|
||||
|
||||
# - name: build-docker-image
|
||||
|
@ -38,16 +44,13 @@ steps:
|
|||
|
||||
- name: deploy
|
||||
image: docker/compose
|
||||
environment:
|
||||
DOCKER_REG_USERNAME:
|
||||
from_secret: docker_reg_username
|
||||
DOCKER_REG_PASSWORD:
|
||||
from_secret: docker_reg_password
|
||||
volumes:
|
||||
- name: dockersock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker login -u ${DOCKER_REG_USERNAME} -p ${DOCKER_REG_PASSWORD} https://docker.zcj.plus
|
||||
- echo $DOCKER_REG_USERNAME
|
||||
- echo $DOCKER_REG_PASSWORD
|
||||
- docker login -u $DOCKER_REG_USERNAME -p $DOCKER_REG_PASSWORD https://docker.zcj.plus
|
||||
- docker-compose up -d
|
||||
- docker-compose logs -f
|
||||
|
||||
|
|
Loading…
Reference in New Issue