From 8a5c6ebbf3aff3482e8960b5ca7db1ac6c70f191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=E1=BA=A1=20=C4=90=E1=BB=A9c=20B=E1=BA=A3o?= <146197243+DucBaoUIT@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:11:29 +0700 Subject: [PATCH] CD change cluster --- .github/workflows/deploymentCD.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploymentCD.yaml b/.github/workflows/deploymentCD.yaml index a2efded..581abfa 100644 --- a/.github/workflows/deploymentCD.yaml +++ b/.github/workflows/deploymentCD.yaml @@ -5,7 +5,7 @@ on: branches: - main env: - PROJECT_ID=devops-project-426109 + PROJECT_ID=gke-project-423206 CLUSTER_NAME=autopilot-cluster-1 ZONE=us-central1 @@ -26,7 +26,7 @@ jobs: - name: Authenticate uses: google-github-actions/auth@v2 with: - credentials_json: ${{ secrets.GCP_SA_KEY_2 }} + credentials_json: ${{ secrets.GCP_SA_KEY }} - name: Configure gcloud uses: google-github-actions/setup-gcloud@v2 @@ -38,10 +38,6 @@ jobs: run: | gcloud container clusters get-credentials ${{ env.CLUSTER_NAME }} --zone ${{ env.ZONE }} --project ${{ env.PROJECT_ID }} - # - name: Apply Kubernetes manifests for database - # run: | - # kubectl apply -f database.yaml - - name: Apply Kubernetes manifests for application run: | kubectl apply -f resources.yaml