Files
clubbing-content/.drone.yml
Bastian Mäuser bfdf0e9eb8 Update .drone.yml
2025-06-13 13:04:40 +02:00

50 lines
1.1 KiB
YAML

kind: pipeline
type: docker
name: deploy-to-remote
steps:
# - name: display environment variables
# image: busybox
# pull: if-not-exists
# commands:
# - printenv
- name: lint
image: osshelp/drone-linter
settings:
skip_yml: true
markdown_files:
- schedule/schedule.md
- 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
username: mephisto
port: 22
ssh_key:
from_secret: ssh-key
known_hosts: |
mephis.to ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGLbFtFq1xLwNG8YjKxc46/LQpAnKnZcf0ICq01ZXHfa
script:
- cd /home/mephisto/cc
- hugo
trigger:
branch:
- main
event:
- push