Skip to content

Commit

Permalink
update gke-destory with zone input
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadel authored Aug 7, 2023
1 parent a091395 commit cfac58e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/gke-destroy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,31 @@ on:
description: 'Name of GKE cluster to create'
default: "demo-cluster"
gcp-region:
type: choice
description: 'GCP region to create cluster'
default: "us-central1"
default: "us-east5"
options:
- us-east5
- us-central1
- us-east4
gcp-zone:
type: choice
description: 'GCP zone to create cluster'
default: "a"
options:
- a
- b
- c

env:
CLUSTER_NAME: ${{ github.event.inputs.cluster-name || 'demo-cluster' }}
GCP_REGION: ${{ github.event.inputs.gcp-region || 'us-central1' }}
GCP_ZONE: ${{ github.event.inputs.gcp-region || 'us-central1' }}-c
GCP_ZONE: ${{ github.event.inputs.gcp-region || 'us-central1' }}-${{ github.event.inputs.gcp-zone || 'a' }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT }}
TF_VAR_project: ${{ secrets.GCP_PROJECT }}
TF_VAR_cluster_name: ${{ github.event.inputs.cluster-name || 'demo-cluster' }}
TF_VAR_region: ${{ github.event.inputs.gcp-region || 'us-central1' }}
TF_VAR_zone: ${{ github.event.inputs.gcp-region || 'us-central1' }}-c
TF_VAR_zone: ${{ github.event.inputs.gcp-region || 'us-central1' }}-${{ github.event.inputs.gcp-zone || 'a' }}

jobs:
terraform:
Expand Down

0 comments on commit cfac58e

Please sign in to comment.