Files
clubbing-content/.drone.yml
Bastian Mäuser 1ca1a1d8fd
Some checks failed
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
Update .drone.yml
2025-06-16 11:14:57 +02:00

50 lines
981 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