|
1 | 1 | config: |
2 | | - state: # state config, backend can be local, s3 or k8s |
| 2 | + state: |
3 | 3 | backend: local |
4 | 4 | options: |
5 | 5 | stateFile: devstream.state |
6 | | - |
7 | 6 | vars: |
8 | | - defaultBranch: main |
9 | | - githubUsername: daniel-hutao |
10 | | - repoName: dtm-test-go |
11 | | - jiraID: merico |
12 | | - |
13 | | - jiraProjectKey: DT |
14 | | - dockerhubUsername: exploitht |
15 | | - argocdNameSpace: argocd |
| 7 | + githubUser: GITHUB_USER |
| 8 | + dockerUser: DOCKERHUB_USER |
| 9 | + app: helloworld |
16 | 10 |
|
17 | 11 | tools: |
18 | 12 | - name: repo-scaffolding |
19 | | - instanceID: golang-github |
| 13 | + instanceID: myapp |
20 | 14 | options: |
21 | 15 | destinationRepo: |
22 | | - owner: [[ githubUsername ]] |
23 | | - name: [[ repoName ]] |
24 | | - branch: [[ defaultBranch ]] |
| 16 | + owner: [[ githubUser ]] |
| 17 | + name: [[ app ]] |
| 18 | + branch: main |
25 | 19 | scmType: github |
26 | 20 | sourceRepo: |
27 | 21 | org: devstream-io |
28 | | - name: dtm-scaffolding-golang |
| 22 | + name: dtm-repo-scaffolding-python-flask |
29 | 23 | scmType: github |
30 | | - vars: |
31 | | - imageRepo: "[[ dockerhubUsername ]]/[[ repoName ]]" |
32 | | -- name: jira-github-integ |
33 | | - instanceID: default |
34 | | - dependsOn: [ "repo-scaffolding.golang-github" ] |
35 | | - options: |
36 | | - owner: [[ githubUsername ]] |
37 | | - repo: [[ repoName ]] |
38 | | - jiraBaseUrl: https://[[ jiraID ]].atlassian.net |
39 | | - jiraUserEmail: [[ jiraUserEmail ]] |
40 | | - jiraProjectKey: [[ jiraProjectKey ]] |
41 | | - branch: main |
42 | 24 | - name: github-actions |
43 | | - instanceID: default |
44 | | - dependsOn: [ "repo-scaffolding.golang-github" ] |
| 25 | + instanceID: flask |
| 26 | + dependsOn: [ repo-scaffolding.myapp ] |
45 | 27 | options: |
46 | 28 | scm: |
47 | | - owner: ${{repo-scaffolding.golang-github.outputs.owner}} |
48 | | - name: ${{repo-scaffolding.golang-github.outputs.repo}} |
49 | | - branch: [[ defaultBranch ]] |
| 29 | + owner: [[ githubUser ]] |
| 30 | + name: [[ app ]] |
50 | 31 | scmType: github |
51 | 32 | pipeline: |
52 | | - configLocation: https://raw.githubusercontent.com/devstream-io/ci-template/main/github-actions/workflows/main.yml |
| 33 | + configLocation: https://raw.githubusercontent.com/devstream-io/dtm-pipeline-templates/main/github-actions/workflows/main.yml |
53 | 34 | language: |
54 | | - name: go |
55 | | - framework: gin |
| 35 | + name: python |
| 36 | + framework: flask |
56 | 37 | imageRepo: |
57 | | - user: [[ dockerhubUsername ]] |
| 38 | + user: [[ dockerUser ]] |
58 | 39 | - name: helm-installer |
59 | 40 | instanceID: argocd |
60 | 41 | - name: argocdapp |
61 | 42 | instanceID: default |
62 | | - dependsOn: ["helm-installer.argocd", "repo-scaffolding.golang-github"] |
| 43 | + dependsOn: [ "helm-installer.argocd", "github-actions.flask" ] |
63 | 44 | options: |
64 | 45 | app: |
65 | | - name: ${{repo-scaffolding.golang-github.outputs.repo}} |
66 | | - namespace: [[ argocdNameSpace ]] |
| 46 | + name: [[ app ]] |
| 47 | + namespace: argocd |
67 | 48 | destination: |
68 | 49 | server: https://kubernetes.default.svc |
69 | 50 | namespace: default |
70 | 51 | source: |
71 | 52 | valuefile: values.yaml |
72 | | - path: helm/${{repo-scaffolding.golang-github.outputs.repo}} |
73 | | - repoURL: ${{repo-scaffolding.golang-github.outputs.repoURL}} |
| 53 | + path: helm/[[ app ]] |
| 54 | + repoURL: ${{repo-scaffolding.myapp.outputs.repoURL}} |
| 55 | + imageRepo: |
| 56 | + user: [[ dockerUser ]] |
0 commit comments