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

This commit is contained in:
Vri 🌈 2023-03-29 20:13:51 +02:00
parent 3b7eed81e4
commit a578978a22
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -1,23 +1,24 @@
pipeline:
build:
image: debian
image: archlinux
commands:
- apt-get update
- apt-get install hugo
- pacman -S hugo
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
check-version:
image: debian
image: archlinux
commands:
- echo "Checking Hugo version."
- hugo version
upload:
image: debian
image: archlinux
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
- rsync -rv -e "ssh -p $SSH-PORT" /woodpecker/build/ woodpecker@$SSH-HOST:/home/woodpecker/build/vrifox.cc/ --checksum
secrets: [ ssh-key, ssh-port, ssh-host, ssh-dir ]
branches: main