From c35becaac8ac64f82790cae739b94df828725820 Mon Sep 17 00:00:00 2001 From: Juriba Alsiari <59488534+JuribaDev@users.noreply.github.com> Date: Thu, 29 Aug 2024 02:08:07 +0300 Subject: [PATCH] Update cd.yml --- .github/workflows/cd.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index dcad139..73339aa 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -81,15 +81,15 @@ jobs: chmod u+w k8s/manifests.yaml # Update Kubernetes manifests with secrets and environment variables - sed -i 's|ENVIRONMENT_NAMESPACE|'${{ secrets.ENVIRONMENT_NAMESPACE }}'|g' k8s/*.yaml - sed -i 's|MONGODB_URI_SECRET|'${{ secrets.MONGODB_URI_SECRET }}'|g' k8s/*.yaml - sed -i 's|JWT_KEY_SECRET|'${{ secrets.JWT_KEY_SECRET }}'|g' k8s/*.yaml - sed -i 's|JWT_EXPIRATION|'${{ secrets.JWT_EXPIRATION }}'|g' k8s/*.yaml - sed -i 's|LOCATION|'${LOCATION}'|g' k8s/*.yaml - sed -i 's|PROJECT_ID|'${{ secrets.GCP_PROJECT_ID }}'|g' k8s/*.yaml - sed -i 's|REPO_NAME|'${{ secrets.REPO_NAME }}'|g' k8s/*.yaml - sed -i 's|TAG|'${{ github.sha }}'|g' k8s/*.yaml - sed -i 's|STATIC_IP_PLACEHOLDER|'${{ secrets.STATIC_IP }}'|g' k8s/*.yaml + sed -i 's|ENVIRONMENT_NAMESPACE|'${{ secrets.ENVIRONMENT_NAMESPACE }}'|g' k8s/manifests.yaml + sed -i 's|MONGODB_URI_SECRET|'${{ secrets.MONGODB_URI_SECRET }}'|g' k8s/manifests.yaml + sed -i 's|JWT_KEY_SECRET|'${{ secrets.JWT_KEY_SECRET }}'|g' k8s/manifests.yaml + sed -i 's|JWT_EXPIRATION|'${{ secrets.JWT_EXPIRATION }}'|g' k8s/manifests.yaml + sed -i 's|LOCATION|'${LOCATION}'|g' k8s/manifests.yaml + sed -i 's|PROJECT_ID|'${{ secrets.GCP_PROJECT_ID }}'|g' k8s/manifests.yaml + sed -i 's|REPO_NAME|'${{ secrets.REPO_NAME }}'|g' k8s/manifests.yaml + sed -i 's|TAG|'${{ github.sha }}'|g' k8s/manifests.yaml + sed -i 's|STATIC_IP_PLACEHOLDER|'${{ secrets.STATIC_IP }}'|g' k8s/manifests.yaml # Apply Kubernetes manifests kubectl apply -f k8s/