Skip to content

Commit

Permalink
auto update script
Browse files Browse the repository at this point in the history
  • Loading branch information
islandbitcoin committed Aug 29, 2023
1 parent 2ef75fb commit f0e34f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
jobs:
build:
env:
TF_LOG: DEBUG
CLUSTER_NAME: flash-cluster
NAMESPACE: default
GALOY_NAMESPACE: galoy
Expand Down Expand Up @@ -37,6 +36,10 @@ jobs:
run: |
gcloud container clusters get-credentials $CLUSTER_NAME --zone us-east1 --project flash-staging-cluster
- name: Verify kubeconfig
run: |
cat $KUBECONFIG
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
Expand Down
6 changes: 6 additions & 0 deletions dev/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@ provider "kubernetes" {
manifest_resource = true
}
}

provider "kubernetes-alpha" {
host = "https://${data.google_container_cluster.primary.private_cluster_config.0.private_endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(data.google_container_cluster.primary.master_auth.0.cluster_ca_certificate)
}

0 comments on commit f0e34f3

Please sign in to comment.