diff --git a/.github/workflows/gatekeeper-k8s-integrationtests.yaml b/.github/workflows/gatekeeper-k8s-integrationtests.yaml index c5d63da6..48c17b95 100644 --- a/.github/workflows/gatekeeper-k8s-integrationtests.yaml +++ b/.github/workflows/gatekeeper-k8s-integrationtests.yaml @@ -20,7 +20,7 @@ jobs: - name: Test against KinD run: | confbatstest=$(docker images --filter=label=com.github.actions.name=confbatstest --format "{{.Repository}}:{{.Tag}}") - docker run --rm --network host --workdir /conftest --volume "/home/runner/.kube/":"/root/.kube/" --volume "/home/runner/work/rego-policies/rego-policies":"/conftest" --entrypoint .github/workflows/tests-entrypoint.sh ${confbatstest} + docker run --rm --network host --workdir /conftest --volume "/home/runner/.kube/":"/opt/app-root/src/.kube/" --volume "/home/runner/work/rego-policies/rego-policies":"/conftest" --entrypoint .github/workflows/tests-entrypoint.sh ${confbatstest} - name: Get pods and events if tests failed if: ${{ failure() }} diff --git a/.github/workflows/tests-entrypoint.sh b/.github/workflows/tests-entrypoint.sh index 1d68ef29..8d7359b1 100755 --- a/.github/workflows/tests-entrypoint.sh +++ b/.github/workflows/tests-entrypoint.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + kubectl cluster-info _test/prow.sh deploy