diff options
author | Oliver Smith <osmith@sysmocom.de> | 2018-11-30 11:16:58 +0100 |
---|---|---|
committer | osmith <osmith@sysmocom.de> | 2018-12-03 13:39:02 +0000 |
commit | 6f8339b5d01a53009f43ee7f244bb707709ac534 (patch) | |
tree | 4817058f4eb4e6bc82d8e920a322e91111156b5c /jobs | |
parent | 03d5f4c71c5c9297243096377bb3a2120d156db9 (diff) |
master-builds: make SSH keys available in Docker
At runtime, mount the Jenkins host's ~/.ssh folder inside the Docker
containers, from which manual PDFs will be published.
To my surprise, local testing showed that ssh is looking for the keys
in /home/build/.ssh, although the HOME variable inside the image is set
to /build, not /home/build.
Related: OS#3385
Change-Id: Icfff3b6a620de79d1bab7ff6a35309f828581c09
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/master-builds.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml index 67a9b80..d485a5f 100644 --- a/jobs/master-builds.yml +++ b/jobs/master-builds.yml @@ -175,6 +175,7 @@ -e OSMOPY_DEBUG_TCP_SOCKETS="1" \ -w /build -i -u build \ -v "$PWD:/build" -v "$HOME/bin:/build_bin" \ + -v "$HOME/.ssh:/home/build/.ssh:ro" \ osmocom:amd64 /build/contrib/jenkins.sh --publish - osmo-bts: @@ -235,6 +236,7 @@ -e OSMOPY_DEBUG_TCP_SOCKETS="1" \ -w /build -i -u build \ -v "$PWD:/build" -v "$HOME/bin:/build_bin" \ + -v "$HOME/.ssh:/home/build/.ssh:ro" \ osmocom:amd64 /build/contrib/jenkins.sh --publish trigger: master-osmo-msc, master-osmo-bsc @@ -258,6 +260,7 @@ -w /build -u build \ -v "$PWD:/build" -v "$HOME/bin:/build_bin" \ -v "$ARTIFACT_STORE:/artifact_store" \ + -v "$HOME/.ssh:/home/build/.ssh:ro" \ osmocom:amd64 /build/contrib/jenkins.sh --publish - osmo-pcap @@ -298,6 +301,7 @@ -e OSMOPY_DEBUG_TCP_SOCKETS="1" \ -w /build -i -u build \ -v "$PWD:/build" -v "$HOME/bin:/build_bin" \ + -v "$HOME/.ssh:/home/build/.ssh:ro" \ osmocom:amd64 /build/contrib/jenkins.sh --publish - osmo-sip-connector: |