mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-11-14 22:07:17 +00:00
Fix HTTPS authentication in bootstrap script
This commit is contained in:
parent
f88342a91d
commit
870b2d4cff
@ -17,6 +17,8 @@ TEST=test-${TFW_POSTFIX}
|
||||
FRONTEND=frontend-${TFW_POSTFIX}
|
||||
LOGFILE=/tmp/bootstrap_tfw.log
|
||||
|
||||
remotebase="git@github.com:"
|
||||
|
||||
run()
|
||||
{
|
||||
trap 'exit 1' INT
|
||||
@ -91,7 +93,6 @@ clone_repos_ask_ssh_or_https()
|
||||
|
||||
clone_repos()
|
||||
{
|
||||
remotebase="git@github.com:"
|
||||
spinned_or_not="spinned"
|
||||
if [[ "$HTTPS_REMOTES" == "1" ]]; then
|
||||
remotebase="https://github.com/"
|
||||
@ -116,7 +117,7 @@ install_frontend_deps()
|
||||
|
||||
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 |
|
||||
grep -oP '(?<=refs/tags/)\w+-\d{8}$' |
|
||||
sort -t '-' -k2 |
|
||||
|
Loading…
Reference in New Issue
Block a user