Added tutorial stuff
@ -2,19 +2,29 @@ To delivery new document repository the following steps need to be taken:
|
||||
|
||||
1. create respective entry in metadata
|
||||
|
||||
2. Create new repositories
|
||||
2. Install Tea.
|
||||
```
|
||||
sudo wget https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 -O /usr/local/bin/tea
|
||||
sudo chmod +x /usr/local/bin/tea
|
||||
```
|
||||
Log-In using your API-Key
|
||||
```
|
||||
tea login add
|
||||
```
|
||||
|
||||
3. Create new repositories
|
||||
|
||||
```
|
||||
python3 bootstrap_repositories.py --target-environment internal --service-type smg --work-dir ~/tmpdir8
|
||||
```
|
||||
|
||||
3. add repository entry in zuul/main.yaml
|
||||
4. add repository entry in zuul/main.yaml
|
||||
|
||||
```
|
||||
git clone git@github.com:opentelekomcloud-infra/zuul-config.git
|
||||
```
|
||||
|
||||
4. Manually restart zuul node
|
||||
5. Manually restart zuul node
|
||||
|
||||
manual zuul reload ```zuul-scheduler smart-reconfigure --tenant XXX``` in zuul-scheduler pod
|
||||
|
||||
@ -27,7 +37,7 @@ To delivery new document repository the following steps need to be taken:
|
||||
kubectl --context otcinfra -n zuul-ci logs -f pod/zuul-scheduler-main-0 zuul-scheduler
|
||||
```
|
||||
|
||||
5. update gitstyring
|
||||
6. update gitstyring
|
||||
|
||||
```
|
||||
git clone git@git-ssh.tsi-dev.otc-service.com:ecosystem/gitstyring.git
|
||||
@ -37,15 +47,15 @@ To delivery new document repository the following steps need to be taken:
|
||||
git add cloud-container-instance.yml distributed-database-middleware.yml
|
||||
```
|
||||
|
||||
6. Update zuul.yaml
|
||||
7. Update zuul.yaml
|
||||
|
||||
```
|
||||
python3 ~/otc-metadata/tools/update_zuul_project_configs.py --environment internal --service-type smg --work-dir workspace/github/opentelekomcloud-infra/gitstyring/data/data/github/orgs/opentelekomcloud-docs/repositories
|
||||
```
|
||||
|
||||
7. Update manually zuul.yaml on doc-exports repository to enable check jobs for newly added repos
|
||||
8. Update manually zuul.yaml on doc-exports repository to enable check jobs for newly added repos
|
||||
|
||||
8. Generate updated metadata.yaml in the doc-exports repository with tools/generate_docexports_data.py:
|
||||
9. Generate updated metadata.yaml in the doc-exports repository with tools/generate_docexports_data.py:
|
||||
```
|
||||
python tools/generate_docexports_data.py > ../../docs/doc-exports/metadata.yaml
|
||||
```
|
||||
|
Reference in New Issue
Block a user