website/.woodpecker.yml
vrifox 6df9b579fc
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
[CI/CD] experimental
2023-03-29 22:01:37 +02:00

22 lines
No EOL
656 B
YAML

pipeline:
build:
image: archlinux
commands:
- pacman -Syu --noconfirm hugo git openssh rsync
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
prepare-ssh:
image: archlinux
commands:
- mkdir -p ~/.ssh
- echo "$SSH_KEY" > ~/.ssh/id_25519
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
secrets: [ ssh-key ]
upload:
image: archlinux
commands:
- rsync -rv -e "ssh -p $SSH_PORT -i ~/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH_HOST:/home/woodpecker/build/vrifox.cc/ --checksum
secrets: [ ssh_port, ssh_host ]
branches: main