fix: use curlimage/use proper OR

This commit is contained in:
Naramsim 2024-06-03 07:56:29 +02:00
parent c8457d1e63
commit 24e968553c

View file

@ -18,7 +18,7 @@ spec:
done; done;
containers: containers:
- name: load-graphql - name: load-graphql
image: debian:buster image: curlimages/curl:latest
env: env:
- name: HASURA_GRAPHQL_ADMIN_SECRET - name: HASURA_GRAPHQL_ADMIN_SECRET
valueFrom: valueFrom:
@ -32,11 +32,10 @@ spec:
key: POKEAPI_CHECKOUT_REF key: POKEAPI_CHECKOUT_REF
command: ["sh", "-c"] command: ["sh", "-c"]
args: args:
- apt-get update && - apk update && apk add git &&
apt-get install -y git curl && curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 sh &&
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 bash &&
cd /tmp && cd /tmp &&
git clone https://github.com/PokeAPI/pokeapi.git && git clone https://github.com/PokeAPI/pokeapi.git &&
cd pokeapi && cd pokeapi &&
git checkout $(POKEAPI_CHECKOUT_REF) | git checkout master && (git checkout $(POKEAPI_CHECKOUT_REF) || git checkout master) &&
hasura md apply --endpoint http://graphql:8080 --project graphql --admin-secret $(HASURA_GRAPHQL_ADMIN_SECRET) hasura md apply --endpoint http://graphql:8080 --project graphql --admin-secret $(HASURA_GRAPHQL_ADMIN_SECRET)