blog/.woodpecker.yaml
Sergio Durigan Junior 60ef67b9a3
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Improve .woodpecker.yaml and enable event filters
2024-06-12 21:02:29 -04:00

19 lines
613 B
YAML

steps:
- name: build
when:
- branch: master
event: push
image: debian:testing-slim
secrets: [ ssh_key, ssh_port ]
commands:
- apt-get update
- apt-get install -y hugo rsync openssh-client
- mkdir ~/.ssh
- printf '%s\n' "$${SSH_KEY}" > ~/.ssh/id_rsa
- chmod 0700 ~/.ssh
- chmod 0600 ~/.ssh/id_rsa
- /usr/bin/hugo --verbose
- /usr/bin/rsync --verbose --compress --archive --recursive
--progress --checksum --delete
--rsh="/usr/bin/ssh -4 -p $${SSH_PORT} -o StrictHostKeyChecking=no"
public/ blog@sergiodj.net:.