Skip to content

Commit

Permalink
Set Hasura cli env vars explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
mddilley committed Oct 13, 2023
1 parent 343a648 commit e42996b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/migration-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,17 @@ function export_hasura_env_vars() {
function run_migration() {
echo "----- MIGRATIONS STARTED -----";
hasura --skip-update-check version;

echo "Applying migration";
hasura --skip-update-check --disable-interactive --database-name default migrate apply;
hasura --skip-update-check --disable-interactive --database-name default migrate apply \
--admin-secret $HASURA_GRAPHQL_ADMIN_SECRET \
--endpoint $HASURA_GRAPHQL_ENDPOINT;

echo "Applying metadata";
hasura --skip-update-check metadata apply;
hasura --skip-update-check metadata apply \
--admin-secret $HASURA_GRAPHQL_ADMIN_SECRET \
--endpoint $HASURA_GRAPHQL_ENDPOINT;

echo "----- MIGRATIONS FINISHED -----";
}

Expand Down

0 comments on commit e42996b

Please sign in to comment.