From 8c9034df30e0d7b97827fdd2721a226ead58861f Mon Sep 17 00:00:00 2001 From: 13078417792 <397201698@qq.com> Date: Sun, 6 Jun 2021 10:56:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=89=E5=8E=BB=E7=A7=81=E6=9C=89=E9=95=9C?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 75c22608..3c6fb39d 100644 --- a/.drone.yml +++ b/.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: