[CI/CD] combine steps
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Vri 🌈 2023-03-29 22:16:22 +02:00
parent 21068db339
commit 158220006b
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -5,19 +5,14 @@ pipeline:
- pacman -Syu --noconfirm hugo git - pacman -Syu --noconfirm hugo git
- hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir - hugo --destination /woodpecker/build/vrifox.cc/ --minify --cleanDestinationDir
prepare-ssh:
image: archlinux
commands:
- mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_25519
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
secrets: [ ssh_key ]
upload: upload:
image: archlinux image: archlinux
commands: commands:
- pacman -Syu --noconfirm openssh rsync - pacman -Syu --noconfirm openssh rsync
- mkdir -p /root/.ssh
- echo "$SSH_KEY" > /root/.ssh/id_25519
- 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 -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_key, ssh_port, ssh_host ]
branches: main branches: main