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: pipeline:
build: build:
image: debian image: archlinux
commands: commands:
- apt-get update - pacman -S hugo
- apt-get install hugo
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir - hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
check-version: check-version:
image: debian image: archlinux
commands: commands:
- echo "Checking Hugo version." - echo "Checking Hugo version."
- hugo version - hugo version
upload: upload:
image: debian image: archlinux
commands: commands:
- eval `ssh-agent -s` - eval `ssh-agent -s`
- echo "$SSH-KEY" | ssh-add - - echo "$SSH-KEY" | ssh-add -
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - 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 ] secrets: [ ssh-key, ssh-port, ssh-host, ssh-dir ]
branches: main