Compare commits

...

7 commits

Author SHA1 Message Date
05b1d0a178
use different user and directory for upload
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-04-05 21:23:29 +02:00
8c5492ff5b
[CI/CD] re-rename pipeline steps
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2023-03-30 09:52:28 +02:00
779202dd7f
[CI/CD] fix non-accessable files 2023-03-30 09:48:49 +02:00
097ab26112
[CI/CD] add branch cicd condition
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-03-30 09:45:20 +02:00
22e7d68416
[CI/CD] delete files from dest dir
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-03-30 09:38:20 +02:00
f61000cf28
[CI/CD] fix directory
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-03-30 09:34:46 +02:00
92a7274641
test chmod
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-03-30 09:31:41 +02:00

View file

@ -3,16 +3,32 @@ pipeline:
image: archlinux
commands:
- pacman -Syu --noconfirm hugo git
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
- hugo --destination /woodpecker/build/ --minify --cleanDestinationDir
upload:
upload-main:
image: archlinux
commands:
- pacman -Syu --noconfirm openssh rsync
- mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
- chmod 700 /root/.ssh/id_ed25519
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
- rsync -rv -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH_HOST:/home/woodpecker/build/vrifox.cc/ --checksum
- rsync -rv --delete -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ caddy@$SSH_HOST:/var/lib/caddy/woodpecker/vrifox.cc/ --checksum
secrets: [ ssh_key, ssh_port, ssh_host ]
when:
branch: main
branches: main
upload-cicd:
image: archlinux
commands:
- pacman -Syu --noconfirm openssh rsync
- mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
- chmod 700 /root/.ssh/id_ed25519
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
- rsync -rv --delete -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ caddy@$SSH_HOST:/var/lib/caddy/woodpecker/vrifox.cc-cicd/ --checksum
secrets: [ ssh_key, ssh_port, ssh_host ]
when:
branch: cicd
branches: [ main, cicd ]