|
18 | 18 | # see https://github.com/devstream-io/devstream/pull/414 for more info |
19 | 19 | GITHUB_TOKEN: ${{ secrets.E2E_GITHUB_TOKEN }} |
20 | 20 | DOCKERHUB_USERNAME: ${{ secrets.E2E_DOCKERHUB_USERNAME }} |
| 21 | + # for github actions |
21 | 22 | DOCKERHUB_TOKEN: ${{ secrets.E2E_DOCKERHUB_TOKEN }} |
22 | | - TRELLO_API_KEY: ${{ secrets.E2E_TRELLO_API_KEY }} |
23 | | - TRELLO_TOKEN: ${{ secrets.E2E_TRELLO_TOKEN }} |
| 23 | + # for apps |
| 24 | + IMAGE_REPO_PASSWORD: ${{ secrets.E2E_DOCKERHUB_TOKEN }} |
24 | 25 |
|
25 | 26 | concurrency: |
26 | 27 | group: ${{ github.workflow }} |
@@ -65,24 +66,33 @@ jobs: |
65 | 66 | - name: Configure EKS credentials |
66 | 67 | run: | |
67 | 68 | aws eks update-kubeconfig --region ap-southeast-1 --name dtm-test |
68 | | - - name: copy config files |
69 | | - run: cp ./test/e2e/yaml/e2e-*.yaml ./ |
70 | | - - name: install kubectl |
| 69 | + - name: Install kubectl |
71 | 70 | run: | |
72 | 71 | curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/linux/amd64/kubectl |
73 | 72 | chmod +x ./kubectl |
74 | 73 | sudo mv ./kubectl /usr/local/bin/kubectl |
75 | | - - name: apply git-ops |
76 | | - run: ./dtm apply -f e2e-config.yaml -y |
77 | | - - name: apply twice git-ops |
78 | | - run: ./dtm apply -f e2e-config.yaml -y |
79 | | - - name: check if pod is ready |
| 74 | + - name: copy config files |
| 75 | + run: cp ./test/e2e/yaml/e2e-*.yaml ./ |
| 76 | + - name: test 1 - apply git-ops (tools only) |
| 77 | + run: ./dtm apply -f e2e-tools.yaml -y |
| 78 | + - name: test 1 - apply git-ops (tools only) again |
| 79 | + run: ./dtm apply -f e2e-tools.yaml -y |
| 80 | + - name: test 1 - check if pod is ready |
| 81 | + run: while [[ $(kubectl get pods -l app=dtm-e2e-python -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "pod not ready yet..."; sleep 3; done |
| 82 | + timeout-minutes: 10 |
| 83 | + - name: test 1 - verify |
| 84 | + run: ./dtm verify -f e2e-tools.yaml |
| 85 | + - name: test 1 - clean |
| 86 | + run: ./dtm delete -f e2e-tools.yaml -y |
| 87 | + - name: test 2 - apply (apps) |
| 88 | + run: ./dtm apply -f e2e-apps.yaml -y |
| 89 | + - name: test 2 - apply (apps) again |
| 90 | + run: ./dtm apply -f e2e-apps.yaml -y |
| 91 | + - name: test 2 - check if pod is ready |
80 | 92 | 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 |
81 | 93 | timeout-minutes: 10 |
82 | | - - name: verify |
83 | | - run: ./dtm verify -f e2e-config.yaml |
84 | | - - name: clean |
85 | | - run: ./dtm delete -f e2e-config.yaml -y |
| 94 | + - name: test 2 - clean |
| 95 | + run: ./dtm delete -f e2e-apps.yaml -y |
86 | 96 | - name: test e2e success or not |
87 | 97 | if: failure() |
88 | 98 | run: | |
|
0 commit comments