mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 14:51:41 +00:00
ci: probar conexión a ssh antes de perder tiempo
This commit is contained in:
parent
9773285e9f
commit
c9d7ac437b
1 changed files with 4 additions and 2 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/"
|
||||
- "echo \"$${KNOW_HOSTS}\" | base64 -d >> ~/.ssh/known_hosts"
|
||||
- "install -d -m 700 ~/.ssh/"
|
||||
- "echo \"$${KNOWN_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