Skip to content

Commit 0e1b98f

Browse files
authored
Merge pull request #1308 from merico-dev/bugfix-ht
Fix: Quickstart Workflow Failed With var ImageRepo Error
2 parents 1ad2df9 + 085dd88 commit 0e1b98f

File tree

10 files changed

+10
-11
lines changed

10 files changed

+10
-11
lines changed

docs/core-concepts/output.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ tools:
5757
branch: main
5858
repoType: github
5959
vars:
60-
ImageRepo: "ironcore864/golang-demo"
60+
imageRepo: "ironcore864/golang-demo"
6161
sourceRepo:
6262
org: devstream-io
6363
repo: dtm-scaffolding-golang

docs/plugins/argocdapp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tools:
4545
branch: [[ defaultBranch ]]
4646
repoType: github
4747
vars:
48-
ImageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
48+
imageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
4949
sourceRepo:
5050
org: devstream-io
5151
repo: dtm-scaffolding-golang

docs/plugins/repo-scaffolding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ tools:
116116
repo: dtm-scaffolding-golang
117117
repoType: github
118118
vars:
119-
ImageRepo: dtm-test/golang-repo
119+
imageRepo: dtm-test/golang-repo
120120
```
121121
122122
This config will create `dtm-test-golang` repo for user test_owner in GitHub, and the variable ImageRepo will be used for template render.

examples/gitops.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tools:
3030
repo: dtm-scaffolding-golang
3131
repoType: github
3232
vars:
33-
ImageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
33+
imageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
3434
- name: jira-github-integ
3535
instanceID: default
3636
dependsOn: [ "repo-scaffolding.golang-github" ]

examples/quickstart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tools:
1919
repo: dtm-scaffolding-golang
2020
repoType: github
2121
vars:
22-
ImageRepo: YOUR_DOCKER_USERNAME/go-webapp-devstream-demo
22+
imageRepo: YOUR_DOCKER_USERNAME/go-webapp-devstream-demo
2323
- name: githubactions-golang
2424
instanceID: default
2525
dependsOn: ["repo-scaffolding.golang-github"]

internal/pkg/plugin/installer/reposcaffolding/installer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ func InstallRepo(options configmanager.RawOptions) error {
3535
processRepoFileFunc(appName, opts.renderTplConfig()),
3636
)
3737
if err != nil {
38-
log.Warnf("repoScaffolding render repoTemplate failed=> %+v", err)
39-
return fmt.Errorf("render RepoTemplate files failed")
38+
return fmt.Errorf("render RepoTemplate files failed with error: %w", err)
4039
}
4140

4241
// 3. push repo to DestinationRepo

internal/pkg/show/config/plugins/repo-scaffolding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ tools:
2323
repoType: YOUR_TEMPLATE_REPO_TYPE
2424
# this is used for template render
2525
vars:
26-
ImageRepo: YOUR_DOCKERHUB_REPOSITORY
26+
imageRepo: YOUR_DOCKERHUB_REPOSITORY

internal/pkg/show/config/templates/gitops.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ tools:
3030
repo: dtm-scaffolding-golang
3131
repoType: github
3232
vars:
33-
ImageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
33+
imageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
3434
- name: jira-github-integ
3535
instanceID: default
3636
dependsOn: [ "repo-scaffolding.golang-github" ]

internal/pkg/show/config/templates/quickstart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config:
2-
state:
2+
state: # state config, backend can be local, s3 or k8s
33
backend: local
44
options:
55
stateFile: devstream.state

test/e2e/yaml/e2e-test-local.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ tools:
2323
branch: [[ defaultBranch ]]
2424
repoType: github
2525
vars:
26-
ImageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
26+
imageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]"
2727
sourceRepo:
2828
org: devstream-io
2929
repo: dtm-scaffolding-golang

0 commit comments

Comments
 (0)