ci: switch to docker runner and ssh plugin
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b7d3c67c7c
commit
b09eb1bcbe
32
.drone.yml
32
.drone.yml
|
@ -1,23 +1,12 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: ssh
|
||||
type: docker
|
||||
name: deploy
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
server:
|
||||
host:
|
||||
from_secret: host
|
||||
user:
|
||||
from_secret: username
|
||||
ssh_key:
|
||||
from_secret: ssh_key
|
||||
|
||||
clone:
|
||||
disable: true
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- development
|
||||
|
@ -25,6 +14,19 @@ trigger:
|
|||
|
||||
steps:
|
||||
- name: deploy
|
||||
commands:
|
||||
- cd
|
||||
- touch /tmp/.nupls
|
||||
depends_on: [clone]
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
from_secret: host
|
||||
username:
|
||||
from_secret: username
|
||||
key:
|
||||
from_secret: ssh-key
|
||||
port: 22
|
||||
script:
|
||||
- echo hello
|
||||
- echo world
|
||||
- cd
|
||||
- touch /tmp/.nupls
|
||||
- ls -lah /tmp/.nupls
|
||||
|
|
Loading…
Reference in New Issue