This commit is contained in:
parent
c517190b85
commit
bb2bbb3faa
1 changed files with 2 additions and 4 deletions
|
@ -8,12 +8,10 @@ pipeline:
|
|||
upload:
|
||||
image: archlinux
|
||||
commands:
|
||||
- pacman -Syu openssh
|
||||
- eval `ssh-agent -s`
|
||||
- echo "$SSH-KEY" | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$SSH-KEY" > .ssh/id_25519
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|
||||
- rsync -rv -e "ssh -p $SSH-PORT" /woodpecker/build/ woodpecker@$SSH-HOST:/home/woodpecker/build/vrifox.cc/ --checksum
|
||||
- rsync -rv -e "ssh -p $SSH-PORT -i ~/.ssh/id_ed25519" /woodpecker/build/ woodpecker@$SSH-HOST:/home/woodpecker/build/vrifox.cc/ --checksum
|
||||
secrets: [ ssh-key, ssh-port, ssh-host, ssh-dir ]
|
||||
|
||||
branches: main
|
Loading…
Reference in a new issue