Using HTTPS instead of SSH to query Git repo so the SSH key is not needed.

This commit is contained in:
yohan 2019-12-04 11:04:19 +01:00
parent 48bbf5bcfa
commit 55250f2b55

View File

@ -3,7 +3,7 @@ sudo chown root. crontab
sudo chmod 644 crontab sudo chmod 644 crontab
# --force-recreate is used to recreate container when crontab file has changed # --force-recreate is used to recreate container when crontab file has changed
unset VERSION_PROXY VERSION_CRON unset VERSION_PROXY VERSION_CRON
VERSION_PROXY=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-reverse-proxy.git| head -1 | cut -f 1|cut -c -10) \ VERSION_PROXY=$(git ls-remote https://git.scimetis.net/yohan/docker-reverse-proxy.git| head -1 | cut -f 1|cut -c -10) \
VERSION_CRON=$(git ls-remote ssh://git@git.scimetis.net:2222/yohan/docker-cron.git| head -1 | cut -f 1|cut -c -10) \ VERSION_CRON=$(git ls-remote https://git.scimetis.net/yohan/docker-cron.git| head -1 | cut -f 1|cut -c -10) \
sudo -E bash -c 'docker-compose up -d --force-recreate' sudo -E bash -c 'docker-compose up -d --force-recreate'