Commit e153cdf4 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Load SSH config from env

Builds no longer depend on a preexisting config in ~/.ssh.
parent 186604f1
...@@ -19,8 +19,12 @@ sync_mirror: ...@@ -19,8 +19,12 @@ sync_mirror:
except: except:
- production - production
- staging - staging
tags:
- git
allow_failure: true allow_failure: true
script: script:
- mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts
- eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY")
- git clone --bare $CI_BUILD_REPO mirror.git - git clone --bare $CI_BUILD_REPO mirror.git
- cd mirror.git - cd mirror.git
- git update-ref -d refs/tags/production - git update-ref -d refs/tags/production
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment