Skip to content

Commit

Permalink
Fix KUBECONFIG.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaus67 committed Nov 3, 2023
1 parent 5bc9fbe commit bf16302
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit bf16302

Please sign in to comment.