Update .drone.yml
This commit is contained in:
23
.drone.yml
23
.drone.yml
@@ -17,28 +17,33 @@ steps:
|
||||
- name: copy-file-over-scp
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
host: [ SSH_HOST ]
|
||||
username: [ SSH_USER ]
|
||||
host:
|
||||
from_secret: SSH_HOST
|
||||
username:
|
||||
from_secret: SSH_USER
|
||||
port: 22
|
||||
ssh_key:
|
||||
from_secret: ssh-key
|
||||
source:
|
||||
- schedule/schedule.md
|
||||
target: [ TARGET ]
|
||||
target:
|
||||
from_secret: TARGET
|
||||
strip_components: 0
|
||||
overwrite: true
|
||||
known_hosts: |
|
||||
[ KNOWN_HOST ]
|
||||
known_hosts:
|
||||
from_secret: KNOWN_HOST
|
||||
- name: run hugo
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: [ SSH_HOST ]
|
||||
username: [ SSH_USER ]
|
||||
host:
|
||||
from_secret: SSH_HOST
|
||||
username:
|
||||
from_secret: SSH_USER
|
||||
port: 22
|
||||
ssh_key:
|
||||
from_secret: ssh-key
|
||||
known_hosts: |
|
||||
[ KNOWN_HOST ]
|
||||
known_hosts:
|
||||
from_secret: KNOWN_HOST
|
||||
script:
|
||||
- cd [ HUGO_ROOT ]
|
||||
- hugo
|
||||
|
||||
Reference in New Issue
Block a user