Build everything in a container.

Docker containers don't have the SSH_KEY so we need to copy
archives and git repo in a directory on the host and
launch deploy.sh script from there.
This commit is contained in:
Matthieu Gautier
2019-04-18 15:23:31 +02:00
parent f9d5e0aa21
commit 281adbd768
10 changed files with 131 additions and 101 deletions

15
travis/upload_base_deps.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e
BASE_EXPORT_DIR=$HOME/EXPORT/BASE
ls $BASE_EXPORT_DIR
BASE_ARCHIVES=$(find $BASE_EXPORT_DIR -type f)
echo $BASE_ARCHIVES
if [[ "x$BASE_ARCHIVES" != "x" ]]
then
scp -vrp -i ${SSH_KEY} -o StrictHostKeyChecking=no \
$BASE_ARCHIVES \
ci@tmp.kiwix.org:/data/tmp/ci
fi