Commit ee7b22b1 authored by Tom Käsler's avatar Tom Käsler
Browse files

add keys to syncjob

parent 19632a7b
Pipeline #7864 passed with stages
in 2 minutes and 46 seconds
......@@ -37,6 +37,8 @@ sync_mirror:
allow_failure: true
script:
- git clone --bare "$CI_BUILD_REPO" mirror.git
- mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts
- eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY")
- cd mirror.git
- git update-ref -d refs/tags/production
- git update-ref -d refs/tags/staging
......
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