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 22:08:09 +02:00
|
|
|
- pacman -Syu --noconfirm hugo git
|
2023-03-27 16:17:59 +02:00
|
|
|
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
|
|
|
|
|
2023-03-29 21:03:05 +02:00
|
|
|
prepare-ssh:
|
2023-03-29 20:13:51 +02:00
|
|
|
image: archlinux
|
2023-03-27 16:17:59 +02:00
|
|
|
commands:
|
2023-03-29 22:08:09 +02:00
|
|
|
- mkdir -p /root/.ssh
|
|
|
|
- echo "$SSH_KEY" > /root/.ssh/id_25519
|
|
|
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
2023-03-29 22:14:00 +02:00
|
|
|
secrets: [ ssh_key ]
|
2023-03-29 21:03:05 +02:00
|
|
|
|
|
|
|
upload:
|
|
|
|
image: archlinux
|
|
|
|
commands:
|
2023-03-29 22:08:09 +02:00
|
|
|
- pacman -Syu --noconfirm openssh rsync
|
|
|
|
- rsync -rv -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH_HOST:/home/woodpecker/build/vrifox.cc/ --checksum
|
2023-03-29 21:58:41 +02:00
|
|
|
secrets: [ ssh_port, ssh_host ]
|
2023-03-29 20:13:51 +02:00
|
|
|
|
|
|
|
branches: main
|