refine woodpecker pipeline
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Vri 🌈 2023-03-27 16:17:59 +02:00
parent 0f5001e7cf
commit c1fbd836a3
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -1,7 +1,23 @@
pipeline: pipeline:
build: build:
image: alpine image: debian
commands: commands:
- apk update - apt update
- apk add hugo - apt install hugo
- hugo --destination /var/www/vrifox.cc/ --minify --cleanDestinationDir - 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 ]