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

View File

@ -8,7 +8,6 @@ RELEASE_KIWIX_ARCHIVES_DIR=${HOME}/RELEASE_KIWIX_ARCHIVES
RELEASE_ZIM_ARCHIVES_DIR=${HOME}/RELEASE_ZIM_ARCHIVES
DIST_KIWIX_ARCHIVES_DIR=${HOME}/DIST_KIWIX_ARCHIVES
DIST_ZIM_ARCHIVES_DIR=${HOME}/DIST_ZIM_ARCHIVES
SSH_KEY=${TRAVIS_BUILD_DIR}/travis/travisci_builder_id_key
if [[ "$TRAVIS_EVENT_TYPE" = "cron" ]]
then
@ -68,5 +67,16 @@ then
ci@download.openzim.org:/data/openzim/release/${subdir}
done
fi
GIT_REPOS=$(ls -d */)
if [[ "x$GIT_REPOS" != "x" ]]
then
for repo in $GIT_REPOS
do
(cd repo;
GIT_SSH_COMMAND"ssh -o StrictHostKeyChecking=no -i $SSH_KEY" git push
)
done
fi
fi