Skip to content

Commit

Permalink
CD change cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
DucBaoUIT committed Jun 12, 2024
1 parent 42f5a29 commit 8a5c6eb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploymentCD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8a5c6eb

Please sign in to comment.