Skip to content

Commit e34f9f3

Browse files
Update test-deployer.yml
1 parent 3e6bd8c commit e34f9f3

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

.github/workflows/test-deployer.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
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:
@@ -21,8 +23,8 @@ jobs:
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

Comments
 (0)