use different user & dir && create remote dir
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
431f660d3b
commit
826e1b54d8
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ pipeline:
|
||||||
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||||
- chmod 700 /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/ 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/ --mkpath --checksum
|
||||||
secrets: [ ssh_key, ssh_port, ssh_host ]
|
secrets: [ ssh_key, ssh_port, ssh_host ]
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
|
@ -26,7 +26,7 @@ pipeline:
|
||||||
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
- echo "$SSH_KEY" > /root/.ssh/id_ed25519
|
||||||
- chmod 700 /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/ woodpecker@$SSH_HOST:/home/woodpecker/build/vrifox.cc-cicd/ --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-cicd/ --mkpath --checksum
|
||||||
secrets: [ ssh_key, ssh_port, ssh_host ]
|
secrets: [ ssh_key, ssh_port, ssh_host ]
|
||||||
when:
|
when:
|
||||||
branch: cicd
|
branch: cicd
|
||||||
|
|
Loading…
Reference in a new issue