2
0
Derivar 0

bugfix: git clone correct branch

Este cometimento está contido em:
AJ ONeal 2020-10-11 10:39:47 +00:00
ascendente b94d5d2646
cometimento b98c99fe72
1 ficheiros modificados com 1 adições e 1 eliminações

Ver ficheiro

@ -12,7 +12,7 @@ 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")"
git clone --depth=1 "${GIT_CLONE_URL}" "${my_tmp}/${GIT_REPO_NAME}"
git clone --depth=1 "${GIT_CLONE_URL}" -b "${GIT_REF_NAME}" "${my_tmp}/${GIT_REPO_NAME}"
pushd "${my_tmp}/${GIT_REPO_NAME}/"
go generate -mod=vendor ./...
go build -mod=vendor .