website/.woodpecker.yml
vrifox c1fbd836a3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
refine woodpecker pipeline
2023-03-27 16:17:59 +02:00

23 lines
No EOL
638 B
YAML

pipeline:
build:
image: debian
commands:
- apt update
- apt install hugo
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
check-version:
image: debian
commands:
- echo "Checking Hugo version."
- hugo version
upload:
image: debian
commands:
- eval `ssh-agent -s`
- echo "$SSH-KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv -e "ssh -p $SSH-PORT" /woodpecker/build/ $SSH-HOST:$SSH_DIR --checksum
secrets: [ ssh-key, ssh-port, ssh-host, ssh-dir ]