Skip to content

Commit

Permalink
Reload hasura metadata after all services are running
Browse files Browse the repository at this point in the history
  • Loading branch information
culka committed Feb 15, 2024
1 parent 8b2334c commit 6f5e43c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions github-actions/setup-e2e-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,17 @@ runs:
command: "curl --fail http://localhost:3010/actuator/health --output
/dev/null --silent"

- name: Reload Hasura metadata to re-establish connection to Tiamat
env:
HASURA_PASSWORD: "hasura"
run: |
curl --header "Content-Type: application/json" \
--header "x-hasura-admin-secret: $HASURA_PASSWORD" \
--request POST \
--data '{"type":"reload_metadata","args":{"reload_remote_schemas":true,"reload_sources":false}}' \
localhost:3201/v1/metadata
shell: bash

- name: Verify that all containers are healthy
run: '[ -z "$(docker ps -q --filter health=unhealthy)" ]'
shell: bash

0 comments on commit 6f5e43c

Please sign in to comment.