diff --git a/.drone.yml b/.drone.yml index ef417e2f..a21bec10 100644 --- a/.drone.yml +++ b/.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