mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-21 19:03:08 +00:00
test: debug
This commit is contained in:
parent
7c868a7556
commit
b1aa755523
2 changed files with 3 additions and 5 deletions
2
.github/workflows/docker-k8s.yml
vendored
2
.github/workflows/docker-k8s.yml
vendored
|
@ -98,7 +98,7 @@ jobs:
|
|||
bash Resources/scripts/wait.sh http://localhost:8001/api/v1/namespaces/pokeapi/services/pokeapi/proxy/api/v2/pal-park-area/5/
|
||||
- name: K8s wait for job
|
||||
run: |
|
||||
kubectl wait --timeout=600s --for=condition=complete job/load-graphql
|
||||
kubectl wait --timeout=6000s --for=condition=complete job/load-graphql
|
||||
last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql)
|
||||
test "$last_command" -eq 1
|
||||
- name: Get GQL output
|
||||
|
|
|
@ -18,9 +18,7 @@ spec:
|
|||
done;
|
||||
containers:
|
||||
- name: load-graphql
|
||||
image: curlimages/curl:latest
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
image: debian:buster
|
||||
env:
|
||||
- name: HASURA_GRAPHQL_ADMIN_SECRET
|
||||
valueFrom:
|
||||
|
@ -34,7 +32,7 @@ spec:
|
|||
key: POKEAPI_CHECKOUT_REF
|
||||
command: ["sh", "-c"]
|
||||
args:
|
||||
- apk update && apk add git &&
|
||||
- apt-get update && apt-get install curl 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 &&
|
||||
|
|
Loading…
Reference in a new issue