treehouse.systems/.woodpecker.yml

17 lines
490 B
YAML

pipeline:
deploy:
image: gitea.treehouse.systems/ariadne/ariadne.space-hugo:latest
commands:
# build the new site
- hugo
# set up the SSH deployment key and upload the site
- |
mkdir $HOME/.ssh
echo "$SSH_KEY">$HOME/.ssh/id_ecdsa
echo "$SSH_KNOWN_HOSTS">$HOME/.ssh/known_hosts
chown 600 $HOME/.ssh/id_ecdsa
rsync -avHAX public/ treehouse@treehouse.systems:public/
secrets: [SSH_KEY, SSH_KNOWN_HOSTS]