blog/.woodpecker.yaml
Sergio Durigan Junior aaebb75383 Improve .woodpecker.yaml
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
2024-02-22 23:32:43 -05:00

15 lines
530 B
YAML

steps:
- name: build
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
- /usr/bin/hugo --verbose
- /usr/bin/rsync --verbose --compress --archive --recursive \
--progress --checksum --delete \
--rsh="/usr/bin/ssh -p $${SSH_PORT} -o StrictHostKeyChecking=no" \
public/ blog@sergiodj.net:.