website/.woodpecker.yml
vrifox ae0a302298
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
[CI/CD] fix secrets array
2023-03-29 21:10:02 +02:00

23 lines
No EOL
660 B
YAML

pipeline:
build:
image: archlinux
commands:
- pacman -Syu hugo
- 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:
- pacman -Syu openssh rsync
- 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