Skip to content

Commit

Permalink
github_repo: fix repo change
Browse files Browse the repository at this point in the history
  • Loading branch information
zugwan authored and Ubuntu committed Sep 16, 2021
1 parent bcb5c51 commit a2e212e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions github_repo/create-contract-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ spec:
- -ecx
- |
echo $TOKEN | gh auth login --with-token
echo "===== Current tks-management repo list ====="
echo "===== Current repo list ====="
gh repo list openinfradev | grep tks-user-site
gh repo list tks-management
echo "===== Create and initialize tks-management/${CONTRACT_ID} site and manifests repositories ====="
Expand All @@ -31,15 +32,15 @@ spec:
cd ${CONTRACT_ID}
echo -n ${TOKEN} | gh secret set API_TOKEN_GITHUB
gh repo clone tks-management/decapod-site-tks-template-manifests
cd decapod-site-tks-template-manifests
git remote add new_contract https://${USERNAME}:${TOKEN}@github.com/tks-management/${CONTRACT_ID}-manifests
git clone https://$(echo -n $TOKEN)@github.com/openinfradev/tks-user-site-template
cd tks-user-site-template
git remote add new_contract https://$(echo -n $TOKEN)@github.com/tks-management/${CONTRACT_ID}-manifests
git push new_contract main:main
cd ..
gh repo clone tks-management/decapod-site-tks-template
cd decapod-site-tks-template
git remote add new_contract https://${USERNAME}:${TOKEN}@github.com/tks-management/${CONTRACT_ID}
git clone https://$(echo -n $TOKEN)@github.com/openinfradev/tks-user-site-template-manifests
cd tks-user-site-template-manifests
git remote add new_contract https://$(echo -n $TOKEN)@github.com/tks-management/${CONTRACT_ID}
git push new_contract main:main
cd ..
envFrom:
Expand Down

0 comments on commit a2e212e

Please sign in to comment.