Files
clubbing-content/.drone.yml
Bastian Mäuser f7844e0d79 Update .drone.yml
2025-06-16 11:12:34 +02:00

50 lines
958 B
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: $SSH_HOST
username: $SSH_USER
port: 22
ssh_key:
from_secret: ssh-key
source:
- schedule/schedule.md
target: $TARGET
strip_components: 0
overwrite: true
known_hosts: |
$KNOWN_HOST
- name: run hugo
image: appleboy/drone-ssh
settings:
host: $SSH_HOST
username: $SSH_USER
port: 22
ssh_key:
from_secret: ssh-key
known_hosts: |
$KNOWN_HOST
script:
- cd $HUGO_ROOT
- hugo
trigger:
branch:
- main
event:
- push