You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
720 B
33 lines
720 B
kind: pipeline
|
|
type: docker
|
|
name: test
|
|
platform:
|
|
arch: amd64
|
|
os: linux
|
|
steps:
|
|
- name: test
|
|
image: docker/compose:1.29.2
|
|
commands:
|
|
- docker-compose config
|
|
- name: deploy
|
|
image: appleboy/drone-scp:linux-amd64
|
|
settings:
|
|
host: 49.4.92.112
|
|
port: 9022
|
|
username: root
|
|
password:
|
|
from_secret: ssh_password
|
|
target: /data/publish2/frp/publish
|
|
source: ./
|
|
rm: false
|
|
- name: restart
|
|
image: appleboy/drone-ssh:linux-amd64
|
|
settings:
|
|
host: 49.4.92.112
|
|
port: 9022
|
|
username: root
|
|
password:
|
|
from_secret: ssh_password
|
|
script:
|
|
- cd /data/publish2/frp/publish
|
|
- docker-compose up --remove-orphans -d |