5
0
Fork 0
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:
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}"
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}"