mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 03:13:06 +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;
|
||||
containers:
|
||||
- name: load-graphql
|
||||
image: debian:buster
|
||||
image: curlimages/curl:latest
|
||||
env:
|
||||
- name: HASURA_GRAPHQL_ADMIN_SECRET
|
||||
valueFrom:
|
||||
|
@ -32,11 +32,10 @@ spec:
|
|||
key: POKEAPI_CHECKOUT_REF
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- apt-get update &&
|
||||
apt-get install -y git curl &&
|
||||
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 bash &&
|
||||
- apk update && apk add git &&
|
||||
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.36.4 sh &&
|
||||
cd /tmp &&
|
||||
git clone https://github.com/PokeAPI/pokeapi.git &&
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue