diff deploy/linux/build-and-test-deb.sh @ 2206:252c7c8a1a37 rubberband-static

Merge from default branch
author Chris Cannam
date Thu, 31 Jan 2019 10:32:45 +0000
parents 3a4202cae7fe
children 6845d7dafebf
line wrap: on
line diff
--- a/deploy/linux/build-and-test-deb.sh	Wed Nov 28 12:55:33 2018 +0000
+++ b/deploy/linux/build-and-test-deb.sh	Thu Jan 31 10:32:45 2019 +0000
@@ -27,6 +27,11 @@
     perl -p -e "s/\[\[RELEASE\]\]/$release/g" > \
          "$dockerdir"/Dockerfile_test_deb.gen
 
+grep '^bitbucket.org' ~/.ssh/known_hosts > "$dockerdir"/known_hosts
+cp ~/.ssh/id_dsa_build "$dockerdir"/id_dsa_build
+chmod 600 "$dockerdir"/known_hosts "$dockerdir"/id_dsa_build
+trap "rm $dockerdir/known_hosts $dockerdir/id_dsa_build" 0
+
 dockertag="cannam/sonic-visualiser-deb-$current"
 
 sudo docker build -t "$dockertag" -f "$dockerdir"/Dockerfile_deb.gen "$dockerdir"