Skip to content

Commit

Permalink
Replaced Hardcoded cluster name in the config with cluster Id pulled …
Browse files Browse the repository at this point in the history
…from github secrets.
  • Loading branch information
alwinsimon committed Oct 29, 2023
1 parent 7ce2d19 commit 706ef6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CD - Deploy - Auth Service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
- uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- run: doctl kubernetes cluster kubeconfig save bookmyseat-k8s
- run: doctl kubernetes cluster kubeconfig save ${{ secrets.DIGITALOCEAN_CLUSTER_ID }}
- run: kubectl rollout restart deployment auth-depl
2 changes: 1 addition & 1 deletion .github/workflows/CD - Deploy - Manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
- uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- run: doctl kubernetes cluster kubeconfig save bookmyseat-k8s
- run: doctl kubernetes cluster kubeconfig save ${{ secrets.DIGITALOCEAN_CLUSTER_ID }}
- run: kubectl apply -f infra/k8s && kubectl apply -f infra/k8s-prod

0 comments on commit 706ef6f

Please sign in to comment.