fix: YML
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
f87f325773
commit
5de4242145
27
.drone.yml
27
.drone.yml
|
@ -37,27 +37,18 @@ steps: # 定义管道的执行步骤
|
||||||
# tags: latest
|
# tags: latest
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: deploy-image
|
- name: build-start
|
||||||
image: plugins/docker
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
registry: docker.io
|
host: gong.cool
|
||||||
repo: gong921123/hyperf
|
|
||||||
tags: [latest]
|
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: ssh_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: ssh_password
|
||||||
# dockerfile: path/to/Dockerfile
|
# port: 22
|
||||||
# context: path/to/build/context
|
command_timeout: 5m
|
||||||
# target: production
|
script:
|
||||||
deploy:
|
- ls
|
||||||
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
|
# - name: start_container
|
||||||
|
|
Loading…
Reference in New Issue