Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hanu-reference template as standard user site template #30

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion github_repo/create-contract-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,24 @@ spec:

cd ${CONTRACT_ID}
echo -n ${TOKEN} | gh secret set API_TOKEN_GITHUB

git clone https://$(echo -n $TOKEN)@github.com/openinfradev/tks-user-site-template

# Use hanu-reference template as default 'template-std'
git clone https://github.com/openinfradev/decapod-site
cp -r decapod-site/hanu-reference tks-user-site-template/template-std

cd tks-user-site-template
# Remove unnecessary app_group directory before commit.
# If these kinds of apps increases, then they might be defined as black list
# and then removed by FOR loop iteration.
# For now, this hardcoding seems enough.
rm -rf template-std/openstack template-std/decapod-controller
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지워야할 템플릿의 위치가 template-std/openstack, template-std/decapod-controller 가 아닌
template-std/hanu-reference/openstack, template-std/hanu-reference/decapod-controller입니다.

Copy link
Contributor Author

@robertchoi80 robertchoi80 Jan 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아~ openinfradev/dep-tks-user-site-template@7d23127 이 먼저 머지되어야 제대로 동작하네요. (openinfradev/dep-tks-user-site-template#6 중 하나의 커밋입니다)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jaesang 요거 지금은 동작할 테니 resolve 부탁드립니다. 이 PR까지 머지되고 나면 최종 테스트 한번 더 해볼 예정입니다.


git config --global user.email "[email protected]"
git config --global user.name "SKTelecom TACO"
git add .
git commit -m "new contract: ${CONTRACT_ID}"

git remote add new_contract https://$(echo -n $TOKEN)@github.com/tks-management/${CONTRACT_ID}
git push new_contract main:main
cd ..
Expand Down