docs(onboarding): use 'gh repo create --clone' to avoid template-copy race
Separate 'gh repo create --clone=false' + 'git clone' races with GitHub's template content propagation. '--clone' waits for it in one step.
This commit is contained in:
parent
3e9213bfc4
commit
0b4807a836
1 changed files with 4 additions and 2 deletions
|
|
@ -42,11 +42,13 @@ echo -n "<KEBOOLA_STORAGE_TOKEN>" | gcloud secrets create keboola-storage-token
|
|||
|
||||
## 3. Create private infra repo from template
|
||||
|
||||
Create and clone in one step (the `--clone` flag waits for the template copy to finish; cloning in two steps can race):
|
||||
|
||||
```bash
|
||||
gh repo create <customer-org>/agnes-infra-<customer> \
|
||||
--template keboola/agnes-infra-template \
|
||||
--private
|
||||
gh repo clone <customer-org>/agnes-infra-<customer>
|
||||
--private \
|
||||
--clone
|
||||
cd agnes-infra-<customer>
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue