summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2017-07-13 22:32:46 +0100
committerSam Thursfield <sam@afuera.me.uk>2017-07-13 22:32:46 +0100
commite6dd8a1fb1e97aa23902ad641075caeb3198d161 (patch)
tree230698126aa024e781c9137d8d34cd7da5d19559
parentee3c4df9c22215c4c35e24b5bf4231d6cbb8f8ff (diff)
downloaddefinitions-e6dd8a1fb1e97aa23902ad641075caeb3198d161.tar.gz
.gitlab-ci.yml: Create ~/.ssh, and speed up
I think reducing the number of shell commands by combining them together will speed things up.
-rw-r--r--.gitlab-ci.yml22
1 files changed, 13 insertions, 9 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9689ae18..8b9f42ad 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,15 +2,17 @@ image: samthursfield/buildstream:0.1-20170621.1
before_script:
# Update to latest BuildStream
- - cd ~/buildstream
- - git pull origin master
- - pip3 install .
- - cd -
+ - |
+ cd ~/buildstream
+ git pull origin master
+ pip3 install .
+ cd -
# Diagnostics
- - mount
- - df -h
- - whoami
+ - |
+ mount
+ df -h
+ whoami
# Work around https://github.com/fedora-cloud/docker-brew-fedora/issues/14
- export LANG="C.UTF-8"
@@ -21,8 +23,10 @@ before_script:
# Private key stored as a protected variable that allows pushing to
# ostree@ostree.baserock.org
- - echo $baserock_ostree_cache_private_key > ~/.ssh/id_rsa
- - ssh-keygen ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
+ - |
+ mkdir -p ~/.ssh
+ echo $baserock_ostree_cache_private_key > ~/.ssh/id_rsa
+ ssh-keygen ~/.ssh/id_rsa -y > ~/.ssh/id_rsa.pub
# Enable push and pull for Baserock artifact cache
- |