diff --git a/.drone.yml b/.drone.yml index 3f61e3e..4a3499a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,30 +17,30 @@ steps: - name: copy-file-over-scp image: appleboy/drone-scp settings: - host: mephis.to - username: mephisto + host: $SSH_HOST + username: $SSH_USER port: 22 ssh_key: from_secret: ssh-key source: - schedule/schedule.md - target: /home/mephisto/cc/content/ + target: $TARGET strip_components: 0 overwrite: true known_hosts: | - mephis.to ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLbFtFq1xLwNG8YjKxc46/LQpAnKnZcf0ICq01ZXHfa + $KNOWN_HOST - name: run hugo image: appleboy/drone-ssh settings: - host: mephis.to - username: mephisto + host: $SSH_HOST + username: $SSH_USER port: 22 ssh_key: from_secret: ssh-key known_hosts: | - mephis.to ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLbFtFq1xLwNG8YjKxc46/LQpAnKnZcf0ICq01ZXHfa + $KNOWN_HOST script: - - cd /home/mephisto/cc + - cd $HUGO_ROOT - hugo trigger: