website/.woodpecker.yml

24 lines
678 B
YAML
Raw Normal View History

2023-03-26 00:00:23 +01:00
pipeline:
build:
2023-03-29 20:13:51 +02:00
image: archlinux
2023-03-26 00:00:23 +01:00
commands:
2023-03-29 20:13:51 +02:00
- pacman -S hugo
2023-03-27 16:17:59 +02:00
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
check-version:
2023-03-29 20:13:51 +02:00
image: archlinux
2023-03-27 16:17:59 +02:00
commands:
- echo "Checking Hugo version."
- hugo version
upload:
2023-03-29 20:13:51 +02:00
image: archlinux
2023-03-27 16:17:59 +02:00
commands:
- eval `ssh-agent -s`
- echo "$SSH-KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
2023-03-29 20:13:51 +02:00
- 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