Update .drone.yml
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
周炽键 2021-06-06 11:16:07 +08:00
parent 5099214bc4
commit c670138728
1 changed files with 9 additions and 6 deletions

View File

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