@@ -41,7 +41,7 @@ However, if you are like us, who prefer to do things hands-on and get their hand
4141DevStream will use the following plugins to achieve the goal described in [ Section 0] ( #0-goal ) :
4242
43431 . [ repo-scaffolding] ( ../plugins/repo-scaffolding.md )
44- 2 . [ githubactions-golang ] ( ../plugins/githubactions-golang .md )
44+ 2 . [ github-actions ] ( ../plugins/github-actions .md )
45453 . [ helm-installer] ( ../plugins/helm-installer/helm-installer.md )
46464 . [ argocdapp] ( ../plugins/argocdapp.md )
4747
@@ -138,34 +138,33 @@ tools:
138138 options:
139139 destinationRepo:
140140 owner: [[ githubUser ]]
141- repo : [[ app ]]
141+ name : [[ app ]]
142142 branch: main
143- repoType : github
143+ scmType : github
144144 sourceRepo:
145145 org: devstream-io
146- repo: dtm-repo-scaffolding-python
147- repoType: github
148- vars:
149- imageRepo: [[ dockerUser ]]/[[ app ]]
150- - name: githubactions-python
151- instanceID: default
146+ name: dtm-scaffolding-flask
147+ scmType: github
148+ - name: github-actions
149+ instanceID: flask
152150 dependsOn: [ repo-scaffolding.myapp ]
153151 options:
154- owner: [[ githubUser ]]
155- repo: [[ app ]]
156- language:
157- name: python
158- branch: main
159- docker:
160- registry:
161- type: dockerhub
162- username: [[ dockerUser ]]
163- repository: [[ app ]]
152+ scm:
153+ owner: [[ githubUser ]]
154+ name: [[ app ]]
155+ scmType: github
156+ pipeline:
157+ configLocation: https://raw.githubusercontent.com/devstream-io/ci-template/main/github-actions/workflows/main.yml
158+ language:
159+ name: python
160+ framework: flask
161+ imageRepo:
162+ user: [[ dockerUser ]]
164163- name: helm-installer
165164 instanceID: argocd
166165- name: argocdapp
167166 instanceID: default
168- dependsOn: [ " helm-installer.argocd" , " githubactions-python.default " ]
167+ dependsOn: [ " helm-installer.argocd" , " github-actions.flask " ]
169168 options:
170169 app:
171170 name: [[ app ]]
@@ -177,6 +176,8 @@ tools:
177176 valuefile: values.yaml
178177 path: helm/[[ app ]]
179178 repoURL: ${{repo-scaffolding.myapp.outputs.repoURL} }
179+ imageRepo:
180+ user: [[ dockerUser ]]
180181` ` `
181182
182183Then modify the ` vars` section in the ` config.yaml` file accordingly. Please update the values for ` githubUser` and ` dockerUser` to your real users.
@@ -194,15 +195,15 @@ The following environment variables are required for this to work:
194195
195196` ` ` bash
196197export GITHUB_TOKEN=" YOUR_GITHUB_TOKEN_HERE"
197- export DOCKERHUB_TOKEN =" YOUR_DOCKERHUB_TOKEN_HERE"
198+ export IMAGE_REPO_PASSWORD =" YOUR_DOCKERHUB_TOKEN_HERE"
198199` ` `
199200
200201> Note:
201202>
202203> if you don' t know how to create these two tokens, check out:
203204>
204205> - GITHUB_TOKEN: [Manage API tokens for your Atlassian account](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token)
205- > - DOCKERHUB_TOKEN : [Manage access tokens](https://docs.docker.com/docker-hub/access-tokens/)
206+ > - IMAGE_REPO_PASSWORD : [Manage access tokens](https://docs.docker.com/docker-hub/access-tokens/)
206207
207208---
208209
@@ -220,7 +221,7 @@ You'll get some outputs similar to the following:
220221
221222` ` ` bash
2222232022-12-05 17:46:01 ℹ [INFO] Using dir < /Users/tiexin/.devstream/plugins> to store plugins.
223- 2022-12-05 17:46:01 ℹ [INFO] -------------------- [ repo-scaffolding-darwin-arm64_0.10.1 ] --------------------
224+ 2022-12-05 17:46:01 ℹ [INFO] -------------------- [ repo-scaffolding-darwin-arm64_0.10.2 ] --------------------
224225... (omitted)
225226... (omitted)
2262272022-12-05 17:46:51 ✔ [SUCCESS] Initialize finished.
@@ -243,7 +244,7 @@ You will see similar outputs as the following:
2432442022-12-05 17:49:49 ℹ [INFO] Using local backend. State file: devstream.state.
2442452022-12-05 17:49:49 ℹ [INFO] Tool (repo-scaffolding/myapp) found in config but doesn' t exist in the state, will be created.
2452462022-12-05 17:49:49 ℹ [INFO] Tool (helm-installer/argocd) found in config but doesn' t exist in the state, will be created.
246- 2022-12-05 17:49:49 ℹ [INFO] Tool (githubactions-python/default ) found in config but doesn' t exist in the state, will be created.
247+ 2022-12-05 17:49:49 ℹ [INFO] Tool (github-actions/flask ) found in config but doesn' t exist in the state, will be created.
2472482022-12-05 17:49:49 ℹ [INFO] Tool (argocdapp/default) found in config but doesn' t exist in the state, will be created.
2482492022-12-05 17:49:49 ℹ [INFO] Start executing the plan.
2492502022-12-05 17:49:49 ℹ [INFO] Changes count: 4.
@@ -341,7 +342,7 @@ And you will get similar outputs to the following:
3413422022-12-05 17:59:25 ℹ [INFO] Delete started.
3423432022-12-05 17:59:26 ℹ [INFO] Using local backend. State file: devstream.state.
3433442022-12-05 17:59:26 ℹ [INFO] Tool (argocdapp/default) will be deleted.
344- 2022-12-05 17:59:26 ℹ [INFO] Tool (githubactions-python/default ) will be deleted.
345+ 2022-12-05 17:59:26 ℹ [INFO] Tool (github-actions/flask ) will be deleted.
3453462022-12-05 17:59:26 ℹ [INFO] Tool (repo-scaffolding/myapp) will be deleted.
3463472022-12-05 17:59:26 ℹ [INFO] Tool (helm-installer/argocd) will be deleted.
3473482022-12-05 17:59:26 ℹ [INFO] Start executing the plan.
0 commit comments