99 test-deployer :
1010 runs-on : self-hosted
1111 container :
12- image : ubuntu:latest
12+ # image: ubuntu:latest
13+ # options: --privileged
14+ image : ghcr.io/catthehacker/ubuntu:act-latest
1315 options : --privileged
1416 env :
15- GIT_SSH_COMMAND : ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
17+ # GIT_SSH_COMMAND: ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no
1618 PIP_BREAK_SYSTEM_PACKAGES : " 1"
1719 timeout-minutes : 60
1820 strategy :
2123 fail-fast : false
2224
2325 steps :
24- - name : Install common dependencies
25- run : apt update && apt install -y unzip curl wget git nodejs openssh-client jq
26+ # - name: Install common dependencies
27+ # run: apt update && apt install -y unzip curl wget git nodejs openssh-client jq
2628
2729 - name : Install Python
2830 run : |
@@ -157,7 +159,6 @@ jobs:
157159 run : ansible-playbook itential.deployer.site -i tofu_aws/hosts.json -i inventories/common -i inventories/${{ matrix.design }} -v --key-file=~/.ssh/pet-east1.open.pem --become
158160
159161 - name : Verify that Platform is running correctly
160- continue-on-error : true
161162 working-directory : ../themis
162163 run : |
163164 for host in $(jq -r '.all.children.platform.hosts[] | .ansible_host' tofu_aws/hosts.json); do
@@ -168,13 +169,32 @@ jobs:
168169 done
169170
170171 - name : Verify that Gateway is running correctly
171- continue-on-error : true
172172 working-directory : ../themis
173173 run : |
174174 for host in $(jq -r '.all.children.gateway.hosts[] | .ansible_host' tofu_aws/hosts.json); do
175175 python3 scripts/validate.py gateway "http://$host:8083"
176176 done
177177
178+ - name : Verify that Redis is running correctly
179+ working-directory : ../themis
180+ run : |
181+ for host in $(jq -r '.all.children.redis.hosts[] | .ansible_host' tofu_aws/hosts.json); do
182+ python3 scripts/validate.py redis "$host"
183+ done
184+ for host in $(jq -r '(.all.children.redis_secondary.hosts // [])[] | .ansible_host' tofu_aws/hosts.json); do
185+ python3 scripts/validate.py redis "$host"
186+ done
187+
188+ - name : Verify that MongoDB is running correctly
189+ working-directory : ../themis
190+ run : |
191+ for host in $(jq -r '.all.children.mongodb.hosts[] | .ansible_host' tofu_aws/hosts.json); do
192+ python3 scripts/validate.py mongodb "$host"
193+ done
194+ for host in $(jq -r '(.all.children.mongodb_arbiter.hosts // [])[] | .ansible_host' tofu_aws/hosts.json); do
195+ python3 scripts/validate.py mongodb "$host"
196+ done
197+
178198 - name : Tear down EC2 instances
179199 if : always()
180200 working-directory : ../themis/tofu_aws
0 commit comments