diff --git a/.github/workflows/docker-k8s.yml b/.github/workflows/docker-k8s.yml index 35583ae8..373e08a3 100644 --- a/.github/workflows/docker-k8s.yml +++ b/.github/workflows/docker-k8s.yml @@ -101,3 +101,4 @@ jobs: kubectl wait --timeout=1020s --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 diff --git a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml index b71fb3ac..ec0cf1ca 100644 --- a/Resources/k8s/kustomize/base/jobs/load-graphql.yaml +++ b/Resources/k8s/kustomize/base/jobs/load-graphql.yaml @@ -25,9 +25,11 @@ spec: secretKeyRef: name: graphql-env-secret key: HASURA_GRAPHQL_ADMIN_SECRET - envFrom: - - configMapRef: - name: pokeapi-configmap + - name: POKEAPI_CHECKOUT_REF + valueFrom: + configMapKeyRef: + name: pokeapi-configmap + key: POKEAPI_CHECKOUT_REF command: ["sh", "-c"] args: - apt-get update &&