5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-09-28 17:06:57 +00:00

ci: probar conexión a ssh antes de perder tiempo

This commit is contained in:
f 2023-03-16 09:51:28 -03:00
parent 9773285e9f
commit c9d7ac437b

View file

@ -29,10 +29,12 @@ pipeline:
image: "registry.nulo.in/sutty/panel:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}" image: "registry.nulo.in/sutty/panel:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}"
commands: commands:
- "apk add python2 dotenv openssh-client" - "apk add python2 dotenv openssh-client"
- "mkdir ~/.ssh/" - "install -d -m 700 ~/.ssh/"
- "echo \"$${KNOW_HOSTS}\" | base64 -d >> ~/.ssh/known_hosts" - "echo \"$${KNOWN_HOSTS}\" | base64 -d >> ~/.ssh/known_hosts"
- "chmod 600 ~/.ssh/known_hosts"
- "eval $(ssh-agent -s)" - "eval $(ssh-agent -s)"
- "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -" - "echo \"$${SSH_KEY}\" | base64 -d | ssh-add -"
- "ssh $${ORIGIN%:*}"
- "git config user.name Woodpecker" - "git config user.name Woodpecker"
- "git config user.email ci@sutty.coop.ar" - "git config user.email ci@sutty.coop.ar"
- "git remote add upstream $${ORIGIN}" - "git remote add upstream $${ORIGIN}"