1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 21:57:17 +00:00

Fix HTTPS authentication in bootstrap script

This commit is contained in:
Kristóf Tóth 2018-05-25 10:22:30 +02:00
parent f88342a91d
commit 870b2d4cff

View File

@ -17,6 +17,8 @@ TEST=test-${TFW_POSTFIX}
FRONTEND=frontend-${TFW_POSTFIX} FRONTEND=frontend-${TFW_POSTFIX}
LOGFILE=/tmp/bootstrap_tfw.log LOGFILE=/tmp/bootstrap_tfw.log
remotebase="git@github.com:"
run() run()
{ {
trap 'exit 1' INT trap 'exit 1' INT
@ -91,7 +93,6 @@ clone_repos_ask_ssh_or_https()
clone_repos() clone_repos()
{ {
remotebase="git@github.com:"
spinned_or_not="spinned" spinned_or_not="spinned"
if [[ "$HTTPS_REMOTES" == "1" ]]; then if [[ "$HTTPS_REMOTES" == "1" ]]; then
remotebase="https://github.com/" remotebase="https://github.com/"
@ -116,7 +117,7 @@ install_frontend_deps()
fetch_latest_tag() fetch_latest_tag()
{ {
echo -n "$(git ls-remote --tags git@github.com:avatao-content/${BASEIMAGE}.git | echo -n "$(git ls-remote --tags ${remotebase}avatao-content/${BASEIMAGE}.git |
cut -f2 | cut -f2 |
grep -oP '(?<=refs/tags/)\w+-\d{8}$' | grep -oP '(?<=refs/tags/)\w+-\d{8}$' |
sort -t '-' -k2 | sort -t '-' -k2 |