mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-10 06:04:18 +00:00
fix: run as root/remove debug/lowertimeout
This commit is contained in:
parent
24e968553c
commit
64cbb1193d
2 changed files with 3 additions and 5 deletions
6
.github/workflows/docker-k8s.yml
vendored
6
.github/workflows/docker-k8s.yml
vendored
|
@ -40,10 +40,6 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Setup tmate session
|
||||
uses: mxschmitt/action-tmate@v3
|
||||
with:
|
||||
detached: true
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
|
@ -98,7 +94,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=10020s --for=condition=complete job/load-graphql
|
||||
kubectl wait --timeout=600s --for=condition=complete job/load-graphql
|
||||
last_command=$(kubectl get job -o jsonpath='{.status.succeeded}' load-graphql)
|
||||
test "$last_command" -eq 1
|
||||
kubectl logs jobs/load-graphql
|
||||
|
|
|
@ -19,6 +19,8 @@ spec:
|
|||
containers:
|
||||
- name: load-graphql
|
||||
image: curlimages/curl:latest
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
env:
|
||||
- name: HASURA_GRAPHQL_ADMIN_SECRET
|
||||
valueFrom:
|
||||
|
|
Loading…
Reference in a new issue