Skip to content

Commit 4110ff3

Browse files
chore: improve cleanup job
1 parent f8809cf commit 4110ff3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cleanup.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
99
cancel-in-progress: true
1010

11+
env:
12+
GKE_CLUSTER: api-platform-demo
13+
GCE_ZONE: europe-west1-c
14+
1115
jobs:
1216
cleanup:
1317
name: Uninstall K8s Release for Closed Pull Request
@@ -32,7 +36,7 @@ jobs:
3236
run: |
3337
gcloud components install gke-gcloud-auth-plugin
3438
gcloud --quiet auth configure-docker
35-
gcloud container clusters get-credentials api-platform-demo --zone europe-west1-c
39+
gcloud container clusters get-credentials ${{ env.GKE_CLUSTER }} --zone ${{ env.GCE_ZONE }}
3640
-
3741
name: Check for existing namespace
3842
id: k8s-namespace

0 commit comments

Comments
 (0)