summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2017-07-13 22:51:01 +0100
committerSam Thursfield <sam@afuera.me.uk>2017-07-13 22:51:01 +0100
commit192951720e6d6f92d2c772e25a9ce46c9f6ebb59 (patch)
treeab5018434d8067f953aa04b762b798e088fd48ea /.gitlab-ci.yml
parent629e2a56c0d5670a5ae73b977efc266af3733e63 (diff)
downloaddefinitions-192951720e6d6f92d2c772e25a9ce46c9f6ebb59.tar.gz
.gitlab-ci.yml: Fix ssh private key permissions
It's not really an issue on this private Docker runner, but SSH refuses to operate unless our private key is suitably protected.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20ca28a4..b5e0f1d9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,6 +26,7 @@ before_script:
- |
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
# Enable push and pull for Baserock artifact cache