Use hasura-cli deploy
for migrations
This commit is contained in:
@ -37,10 +37,7 @@ spec:
|
|||||||
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
command: [ "/bin/sh", "-c" ]
|
command: [ "/bin/sh", "-c" ]
|
||||||
args:
|
args:
|
||||||
- set -ex;
|
- hasura-cli deploy
|
||||||
hasura-cli metadata apply;
|
|
||||||
hasura-cli migrate apply --all-databases;
|
|
||||||
hasura-cli metadata reload;
|
|
||||||
workingDir: /data
|
workingDir: /data
|
||||||
env:
|
env:
|
||||||
- name: HASURA_GRAPHQL_ENDPOINT
|
- name: HASURA_GRAPHQL_ENDPOINT
|
||||||
|
Reference in New Issue
Block a user