File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ jobs:
62
62
run : |
63
63
aws eks update-kubeconfig --region ap-southeast-1 --name dtm-test
64
64
- name : apply
65
- run : ./dtm apply -f ./test/e2e/yaml/e2e-config.yaml -y
65
+ run : ./dtm apply -f ./test/e2e/yaml/e2e-config.yaml --var-file ./test/e2e/yaml/e2e-variables.yaml - y
66
66
- name : apply twice
67
- run : ./dtm apply -f ./test/e2e/yaml/e2e-config.yaml -y
67
+ run : ./dtm apply -f ./test/e2e/yaml/e2e-config.yaml --var-file ./test/e2e/yaml/e2e-variables.yaml - y
68
68
- name : check if pod is ready
69
69
run : while [[ $(kubectl get pods -l app=dtm-e2e-go -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done
70
70
timeout-minutes : 10
71
71
- name : verify
72
- run : ./dtm verify -f ./test/e2e/yaml/e2e-config.yaml
72
+ run : ./dtm verify -f ./test/e2e/yaml/e2e-config.yaml --var-file ./test/e2e/yaml/e2e-variables.yaml
73
73
- name : clean
74
- run : ./dtm delete -f ./test/e2e/yaml/e2e-config.yaml -y
74
+ run : ./dtm delete -f ./test/e2e/yaml/e2e-config.yaml --var-file ./test/e2e/yaml/e2e-variables.yaml - y
Original file line number Diff line number Diff line change 2
2
- name : go-webapp-repo
3
3
plugin : github-repo-scaffolding-golang
4
4
options :
5
- org : devstream-io
6
- repo : dtm-e2e-go
7
- branch : main
8
- image_repo : dtme2etest/dtm-e2e-go
5
+ org : [[ githubOrganization]]
6
+ repo : [[ repoName ]]
7
+ branch : [[ defaultBranch ]]
8
+ image_repo : [[ dockerRegistryUserName ]]/[[ repoName ]]
9
9
- name : golang-demo-actions
10
10
plugin : githubactions-golang
11
11
dependsOn : ["go-webapp-repo.github-repo-scaffolding-golang"]
15
15
language :
16
16
name : go
17
17
version : " 1.17"
18
- branch : main
18
+ branch : [[ defaultBranch ]]
19
19
build :
20
20
enable : True
21
21
test :
@@ -34,17 +34,17 @@ tools:
34
34
chart :
35
35
chart_name : argo/argo-cd
36
36
release_name : argocd
37
- namespace : argocd
37
+ namespace : [[ argocdNameSpace ]]
38
38
wait : true
39
- timeout : 10m
39
+ timeout : [[ argocdDeployTimeout ]]
40
40
upgradeCRDs : true
41
41
- name : go-webapp-argocd-deploy
42
42
plugin : argocdapp
43
43
dependsOn : ["argocd.argocd", "go-webapp-repo.github-repo-scaffolding-golang"]
44
44
options :
45
45
app :
46
46
name : ${{go-webapp-repo.github-repo-scaffolding-golang.outputs.repo}}
47
- namespace : argocd
47
+ namespace : [[ argocdNameSpace ]]
48
48
destination :
49
49
server : https://kubernetes.default.svc
50
50
namespace : default
Original file line number Diff line number Diff line change
1
+ defaultBranch : main
2
+ githubOrganization : devstream-io
3
+ repoName : dtm-e2e-go
4
+ dockerRegistryUserName : dtme2etest
5
+ argocdNameSpace : argocd
6
+ argocdDeployTimeout : 10m
You can’t perform that action at this time.
0 commit comments