mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 04:26:21 +00:00
ci: probar conexión a ssh antes de perder tiempo
This commit is contained in:
parent
a60a03c6d0
commit
d8170add45
1 changed files with 3 additions and 1 deletions
|
@ -29,10 +29,12 @@ pipeline:
|
|||
image: "registry.nulo.in/sutty/panel:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}"
|
||||
commands:
|
||||
- "apk add python2 dotenv openssh-client"
|
||||
- "mkdir ~/.ssh/"
|
||||
- "install -m 700 ~/.ssh/"
|
||||
- "echo \"$${KNOW_HOSTS}\" | base64 -d >> ~/.ssh/known_hosts"
|
||||
- "chmod 600 ~/.ssh/known_hosts"
|
||||
- "eval $(ssh-agent -s)"
|
||||
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
|
||||
- "ssh $${ORIGIN%:*}"
|
||||
- "git config user.name Woodpecker"
|
||||
- "git config user.email ci@sutty.coop.ar"
|
||||
- "git remote add upstream $${ORIGIN}"
|
||||
|
|
Loading…
Reference in a new issue