Compare commits
No commits in common. "05b1d0a1786164f524986782b9ac29ec2d6b11c0" and "cb936bd6b6e6270f6c46c2a6ff1bdd5306c96088" have entirely different histories.
05b1d0a178
...
cb936bd6b6
1 changed files with 4 additions and 20 deletions
|
@ -3,32 +3,16 @@ pipeline:
|
||||||
image: archlinux
|
image: archlinux
|
||||||
commands:
|
commands:
|
||||||
- pacman -Syu --noconfirm hugo git
|
- pacman -Syu --noconfirm hugo git
|
||||||
- hugo --destination /woodpecker/build/ --minify --cleanDestinationDir
|
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
|
||||||
|
|
||||||
upload-main:
|
upload:
|
||||||
image: archlinux
|
image: archlinux
|
||||||
commands:
|
commands:
|
||||||
- pacman -Syu --noconfirm openssh rsync
|
- pacman -Syu --noconfirm openssh rsync
|
||||||
- mkdir -p /root/.ssh
|
- mkdir -p /root/.ssh
|
||||||
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||||
- chmod 700 /root/.ssh/id_ed25519
|
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
- 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/ --checksum
|
- rsync -rv -e "ssh -p $SSH_PORT -i /root/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH_HOST:/home/woodpecker/build/vrifox.cc/ --checksum
|
||||||
secrets: [ ssh_key, ssh_port, ssh_host ]
|
secrets: [ ssh_key, ssh_port, ssh_host ]
|
||||||
when:
|
|
||||||
branch: main
|
|
||||||
|
|
||||||
upload-cicd:
|
branches: 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 --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 ]
|
|
||||||
|
|
Loading…
Reference in a new issue