Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ jobs:
- name: Lint k8s
run: (cd Resources/k8s/kustomize && yamllint .)
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.14.0
uses: helm/kind-action@v1.15.0
with:
cluster_name: pokeapi
config: Resources/kind/config-ga.yaml
version: v0.32.0
version: v0.33.0
- name: Create deployment configuration
run: |
cp Resources/k8s/kustomize/base/secrets/postgres.env.sample Resources/k8s/kustomize/base/secrets/postgres.env
Expand Down
18 changes: 10 additions & 8 deletions Resources/k8s/kustomize/base/jobs/load-graphql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
done;
containers:
- name: load-graphql
image: debian:bullseye
image: buildpack-deps:stable-scm
env:
- name: HASURA_GRAPHQL_ADMIN_SECRET
valueFrom:
Expand All @@ -32,10 +32,12 @@ spec:
key: POKEAPI_CHECKOUT_REF
command: ["sh", "-c"]
args:
- apt-get update && apt-get install -y curl git &&
curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | VERSION=v2.48.1 bash &&
cd /tmp &&
git clone https://github.com/PokeAPI/pokeapi.git &&
cd pokeapi &&
(git checkout $(POKEAPI_CHECKOUT_REF) || git checkout master) &&
hasura md apply --endpoint http://graphql:8080 --project graphql/v1beta2 --admin-secret $(HASURA_GRAPHQL_ADMIN_SECRET)
- |
set -e
curl -L https://github.com/hasura/graphql-engine/releases/download/v2.48.1/cli-hasura-linux-amd64 -o /usr/local/bin/hasura
chmod +x /usr/local/bin/hasura
cd /tmp
git clone https://github.com/PokeAPI/pokeapi.git
cd pokeapi
git checkout ${POKEAPI_CHECKOUT_REF} || git checkout master
hasura md apply --endpoint http://graphql:8080 --project graphql/v1beta2 --admin-secret ${HASURA_GRAPHQL_ADMIN_SECRET}
Loading