mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-25 04:40:21 +00:00
fix: use curlimage/use proper OR
This commit is contained in:
parent
c8457d1e63
commit
24e968553c
1 changed files with 4 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue