This commit is contained in:
Bastian Mäuser
2025-06-13 11:09:31 +02:00
parent 265075e922
commit eb74544209
6 changed files with 25 additions and 53 deletions

View File

@@ -3,7 +3,28 @@ type: docker
name: deploy-to-remote
steps:
- name: copy-file-over-ssh
steps:
- name: display environment variables
image: busybox
pull: if-not-exists
commands:
- printenv
- name: copy-file-over-scp
image: appleboy/drone-scp
settings:
host: mephis.to
username: mephisto
port: 22
ssh_key:
from_secret: ssh-key
source:
- schedule/schedule.md
target: /home/mephisto/cc/content/
strip_components: 0
overwrite: true
known_hosts: |
mephis.to ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLbFtFq1xLwNG8YjKxc46/LQpAnKnZcf0ICq01ZXHfa
- name: run hugo
image: appleboy/drone-ssh
settings:
host: mephis.to
@@ -11,11 +32,8 @@ steps:
port: 22
ssh_key:
from_secret: ssh-key
source: content/schedule/schedule.md
target: /home/mephisto/cc/content/schedule/schedule.md
known_hosts: |
mephis.to ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLbFtFq1xLwNG8YjKxc46/LQpAnKnZcf0ICq01ZXHfa
trigger:
branch:
-main
script:
- cd /home/mephisto/cc
- hugo