Logearse como diablo, usar root
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
This commit is contained in:
parent
d59a481404
commit
0041691c30
1 changed files with 2 additions and 3 deletions
|
@ -11,11 +11,10 @@ pipeline:
|
|||
- echo "$${SSH_KEY}" | tr -d '\r' | ssh-add -
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "[nulo.in]:420,[186.136.121.7]:420 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGPkgRVWYcVcgjI0xAjDgZQsYuXU9edcya8zna01ibyUMlfKHIMD9yOoq0R+fQPTCqwiol/2tKMPJ2hlKshc+H8=" > ~/.ssh/known_hosts
|
||||
- rsync --rsh='ssh -p420' --progress --chmod=755 gitea root@nulo.in:/usr/local/bin/gitea
|
||||
- ssh -p420 diablo@nulo.in 'doas sv restart gitea'
|
||||
- rsync --rsh='ssh -p420' --progress --chmod=755 gitea diablo@nulo.in:gitea
|
||||
- ssh -p420 diablo@nulo.in 'doas mv ~diablo/gitea /usr/local/bin/gitea && doas sv restart gitea'
|
||||
when:
|
||||
branch: 420
|
||||
event: push
|
||||
secrets:
|
||||
- ssh_key
|
||||
|
||||
|
|
Reference in a new issue