diff --git a/.drone.yml b/.drone.yml index 1eff0c1..db4d42c 100755 --- a/.drone.yml +++ b/.drone.yml @@ -37,13 +37,27 @@ steps: # 定义管道的执行步骤 # tags: latest # - - - name: deploy-pull-images - image: uhub.service.ucloud.cn/drone/ssh - settings: - host: 'gong.cool' - username: 'root' - key: 'gong921123..' + - name: deploy-image + image: plugins/docker + settings: + registry: registry.example.com + repo: username/my-image + tags: [latest] + username: + from_secret: docker_username + password: + from_secret: docker_password + dockerfile: path/to/Dockerfile + context: path/to/build/context + target: production + deploy: + image: ssh-agent + username: ssh_username + host: ssh_server + commands: + - docker login -u $DOCKER_USER -p $DOCKER_PASS $DOCKER_REGISTRY + - docker pull gong921123/hyperf:latest + - docker-compose up -d # - name: start_container