diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-14 12:12:17 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2017-07-14 12:12:17 +0100 |
commit | a0a944620e1cd069cd3d2ddcfd5acb70f59c0a88 (patch) | |
tree | 3d949447f245d9b1627de96eb3eb26fcc44822db | |
parent | 4c4870ece961a3b2d5c6354fa736a6a0d789cbb8 (diff) | |
download | definitions-a0a944620e1cd069cd3d2ddcfd5acb70f59c0a88.tar.gz |
.gitlab-ci.yml: Need to trust host keys
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df6607e0..253e3df5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,12 +27,14 @@ before_script: if [ -z "$baserock_ostree_cache_private_key" ]; then echo >&2 "Private key for ostree.baserock.org is not available." exit 1 - else - mkdir -p ~/.ssh - echo "$baserock_ostree_cache_private_key" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub - fi + endif + mkdir -p ~/.ssh + echo "$baserock_ostree_cache_private_key" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub + + # Trust the host key of the cache server. + - ssh-keygen -p 22200 ostree.baserock.org >> ~/.ssh/known_hosts # Enable push and pull for Baserock artifact cache - | |