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:
|
trigger:
|
||||||
branch: ci
|
branch: ci
|
||||||
|
|
||||||
|
environment:
|
||||||
|
DOCKER_REG_USERNAME:
|
||||||
|
from_secret: docker_reg_username
|
||||||
|
DOCKER_REG_PASSWORD:
|
||||||
|
from_secret: docker_reg_password
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# - name: build-docker-image
|
# - name: build-docker-image
|
||||||
|
@ -38,16 +44,13 @@ steps:
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker/compose
|
image: docker/compose
|
||||||
environment:
|
|
||||||
DOCKER_REG_USERNAME:
|
|
||||||
from_secret: docker_reg_username
|
|
||||||
DOCKER_REG_PASSWORD:
|
|
||||||
from_secret: docker_reg_password
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
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 up -d
|
||||||
- docker-compose logs -f
|
- docker-compose logs -f
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue