This commit is contained in:
parent
6df9b579fc
commit
6c747b1e90
1 changed files with 6 additions and 5 deletions
|
@ -2,21 +2,22 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: archlinux
|
image: archlinux
|
||||||
commands:
|
commands:
|
||||||
- pacman -Syu --noconfirm hugo git openssh rsync
|
- pacman -Syu --noconfirm hugo git
|
||||||
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
|
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
|
||||||
|
|
||||||
prepare-ssh:
|
prepare-ssh:
|
||||||
image: archlinux
|
image: archlinux
|
||||||
commands:
|
commands:
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p /root/.ssh
|
||||||
- echo "$SSH_KEY" > ~/.ssh/id_25519
|
- echo "$SSH_KEY" > /root/.ssh/id_25519
|
||||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
||||||
secrets: [ ssh-key ]
|
secrets: [ ssh-key ]
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
image: archlinux
|
image: archlinux
|
||||||
commands:
|
commands:
|
||||||
- rsync -rv -e "ssh -p $SSH_PORT -i ~/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH_HOST:/home/woodpecker/build/vrifox.cc/ --checksum
|
- 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
|
||||||
secrets: [ ssh_port, ssh_host ]
|
secrets: [ ssh_port, ssh_host ]
|
||||||
|
|
||||||
branches: main
|
branches: main
|
Loading…
Reference in a new issue