add note about Git Credentials Cheat Sheet

This commit is contained in:
AJ ONeal 2020-10-09 09:57:21 +00:00
parent fcaaef72ab
commit b94d5d2646
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ fi
echo "Deploying ${GIT_REPO_ID}#${GIT_REF_NAME} ..." echo "Deploying ${GIT_REPO_ID}#${GIT_REF_NAME} ..."
# See the Git Credentials Cheat Sheet
# https://coolaj86.com/articles/vanilla-devops-git-credentials-cheatsheet/
my_tmp="$(mktemp -d -t "tmp.XXXXXXXXXX")" my_tmp="$(mktemp -d -t "tmp.XXXXXXXXXX")"
git clone --depth=1 "${GIT_CLONE_URL}" "${my_tmp}/${GIT_REPO_NAME}" git clone --depth=1 "${GIT_CLONE_URL}" "${my_tmp}/${GIT_REPO_NAME}"
pushd "${my_tmp}/${GIT_REPO_NAME}/" pushd "${my_tmp}/${GIT_REPO_NAME}/"