5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 02:36:22 +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 a60a03c6d0
commit d8170add45

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/"
- "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}"