This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #479 from vmware-tanzu/releng/usegithub
Use github and not gitlab
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,12 @@ SKIP_GITLAB_REDIRECT="${SKIP_GITLAB_REDIRECT:-false}" | |
git config --global url."https://git:${GH_ACCESS_TOKEN}@github.com".insteadOf "https://github.com" | ||
|
||
# skip the token because we are using gitlab mirrors | ||
if [[ "${SKIP_GITLAB_REDIRECT}" != "true" ]]; then | ||
sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/tkg-providers.git/[email protected]:TKG\/tkg-cli-providers/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/tkg-cli.git/[email protected]:core-build\/mirrors_github_vmware-tanzu-private_tkg-cli.git/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/core.git/[email protected]:core-build\/mirrors_github_vmware-tanzu-private_core.git/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/tanzu-cli-tkg-plugins.git/[email protected]:core-build\/mirrors_github_vmware-tanzu-private_tanzu-cli-tkg-plugins.git/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
fi | ||
# if [[ "${SKIP_GITLAB_REDIRECT}" != "true" ]]; then | ||
# sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/tkg-providers.git/[email protected]:TKG\/tkg-cli-providers/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
# sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/tkg-cli.git/[email protected]:core-build\/mirrors_github_vmware-tanzu-private_tkg-cli.git/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
# sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/core.git/[email protected]:core-build\/mirrors_github_vmware-tanzu-private_core.git/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
# sed -i.bak -e "s/https:\/\/git:\${GH_ACCESS_TOKEN}@github.com\/vmware-tanzu-private\/tanzu-cli-tkg-plugins.git/[email protected]:core-build\/mirrors_github_vmware-tanzu-private_tanzu-cli-tkg-plugins.git/g" ./hack/build-tanzu.sh && rm ./hack/build-tanzu.sh.bak | ||
# fi | ||
|
||
# docker container has no user account | ||
sed -i.bak -e "s/\"\$(id -g -n \"\$USER\")\"/\$(id -g)/g" ./hack/package-release.sh && rm ./hack/package-release.sh.bak | ||
|