From 706ef6fc2eac9c73acc1c378d55424e07b6c9593 Mon Sep 17 00:00:00 2001 From: "Dr. Alwin Simon" <003alwin@gmail.com> Date: Sun, 29 Oct 2023 12:39:48 +0530 Subject: [PATCH] Replaced Hardcoded cluster name in the config with cluster Id pulled from github secrets. --- .github/workflows/CD - Deploy - Auth Service.yml | 2 +- .github/workflows/CD - Deploy - Manifests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD - Deploy - Auth Service.yml b/.github/workflows/CD - Deploy - Auth Service.yml index 8866926..81c158f 100644 --- a/.github/workflows/CD - Deploy - Auth Service.yml +++ b/.github/workflows/CD - Deploy - Auth Service.yml @@ -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 diff --git a/.github/workflows/CD - Deploy - Manifests.yml b/.github/workflows/CD - Deploy - Manifests.yml index fd86cc4..d3af011 100644 --- a/.github/workflows/CD - Deploy - Manifests.yml +++ b/.github/workflows/CD - Deploy - Manifests.yml @@ -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