Skip to content

Commit b30e755

Browse files
authored
GKE Tests Append $GITHUB_ENV (#1777)
* append to $GITHUB_ENV
1 parent 1adfcbf commit b30e755

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/acceptance_tests_gke.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
zone:
1010
description: The GKE zone
1111
default: us-east1-b
12-
1312
kubernetesVersion:
1413
description: The GKE kubernetes version
1514
default: 1.23
@@ -30,7 +29,6 @@ env:
3029
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
3130
GOOGLE_PROJECT: ${{ secrets.GOOGLE_PROJECT }}
3231
GOOGLE_REGION: ${{ github.event.inputs.region }}
33-
3432
GOOGLE_ZONE: ${{github.event.inputs.zone}}
3533

3634
jobs:
@@ -55,7 +53,6 @@ jobs:
5553
with:
5654
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
5755
access_token_lifetime: '10800s'
58-
5956
- name: Install Terraform
6057
uses: hashicorp/setup-terraform@v1
6158
with:
@@ -74,17 +71,17 @@ jobs:
7471
env
7572
terraform init
7673
terraform apply -auto-approve
77-
export GOOGLE_CLUSTER_NAME=`terraform output -raw cluster_name`
74+
echo "GOOGLE_CLUSTER_NAME=`terraform output -raw cluster_name`" >> $GITHUB_ENV
75+
7876
- name: Get GKE Credentials
7977
env:
8078
KUBECONFIG: ${{ github.workspace }}/kubernetes/test-infra/gke/kubeconfig
8179
uses: 'google-github-actions/get-gke-credentials@v0'
8280
with:
83-
cluster_name: $GOOGLE_CLUSTER_NAME
81+
cluster_name: ${{ env.GOOGLE_CLUSTER_NAME }}
8482
location: ${{github.event.inputs.zone}}
8583
project_id: ${{ secrets.GOOGLE_PROJECT }}
8684
use_auth_provider: true
87-
8885
- name: Run Acceptance Test Suite
8986
env:
9087
TF_ACC_TERRAFORM_VERSION: ${{ github.event.inputs.terraformVersion }}

0 commit comments

Comments
 (0)