mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user