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
|
||||
#
|
||||
|
||||
- name: deploy-image
|
||||
image: plugins/docker
|
||||
- name: build-start
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
registry: docker.io
|
||||
repo: gong921123/hyperf
|
||||
tags: [latest]
|
||||
host: gong.cool
|
||||
username:
|
||||
from_secret: docker_username
|
||||
from_secret: ssh_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
|
||||
from_secret: ssh_password
|
||||
# port: 22
|
||||
command_timeout: 5m
|
||||
script:
|
||||
- ls
|
||||
|
||||
|
||||
# - name: start_container
|
||||
|
|
Loading…
Reference in New Issue