diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 19cf154b0..fdf3a4dd4 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -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 diff --git a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml index 9bb8b28f0..80548c360 100644 --- a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml +++ b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml @@ -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: @@ -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}