website/.woodpecker.yml

18 lines
592 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:15:28 +02:00
- pacman -Syu hugo
2023-03-27 16:17:59 +02:00
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
upload:
2023-03-29 20:13:51 +02:00
image: archlinux
2023-03-27 16:17:59 +02:00
commands:
2023-03-29 20:56:42 +02:00
- pacman -Syu openssh rsync
2023-03-27 16:17:59 +02:00
- mkdir -p ~/.ssh
2023-03-29 20:50:16 +02:00
- echo "$SSH-KEY" > ~/.ssh/id_25519
2023-03-27 16:17:59 +02:00
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
2023-03-29 20:46:52 +02:00
- rsync -rv -e "ssh -p $SSH-PORT -i ~/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH-HOST:/home/woodpecker/build/vrifox.cc/ --checksum
2023-03-29 20:56:42 +02:00
secrets: [ ssh-key, ssh-port, ssh-host ]
2023-03-29 20:13:51 +02:00
branches: main