diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index bc7cf8c..f564604 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -18,6 +18,7 @@ jobs: runs-on: ubuntu-latest env: USE_GKE_GCLOUD_AUTH_PLUGIN: "True" + ARTIFACTS_DIR: ${{ runner.temp }}/gke-artifacts steps: - uses: actions/checkout@v4 - uses: actions/checkout@v4 @@ -55,14 +56,12 @@ jobs: - name: Deploy Central to infra cluster env: CLUSTER_NAME: central-login-${{ github.run_id }} - ARTIFACTS_DIR: ${{ runner.temp }}/gke-artifacts INFRA_TOKEN: ${{ secrets.INFRA_TOKEN }} run: | # Fetch the artifacts for the GKE cluster. infractl artifacts --download-dir=${ARTIFACTS_DIR} ${CLUSTER_NAME} # Setup context for GKE cluster. - echo "KUBECONFIG=${ARTIFACTS_DIR}/kubeconfig" >> $GITHUB_OUTPUT export KUBECONFIG=${ARTIFACTS_DIR}/kubeconfig # Deploy Central via deploy scripts. @@ -82,7 +81,7 @@ jobs: USE_MIDSTREAM_IMAGES: false run: | cd stackrox - echo $KUBECONFIG + export KUBECONFIG=${ARTIFCATS_DIR}/kubeconfig source "tests/e2e/lib.sh" wait_for_api