From c67f26f2294fa0f568d606cbd95f164cdcafb175 Mon Sep 17 00:00:00 2001 From: Asiya-Yunusa Date: Fri, 6 Oct 2023 01:46:22 +0100 Subject: [PATCH] Updating environment variables for service name and cluster to match development and production environments --- .github/workflows/api-deploy.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/api-deploy.yml b/.github/workflows/api-deploy.yml index 96ed26ec..fb374442 100644 --- a/.github/workflows/api-deploy.yml +++ b/.github/workflows/api-deploy.yml @@ -14,9 +14,10 @@ permissions: env: REGISTRY: "599564732950.dkr.ecr.us-east-2.amazonaws.com" REPOSITORY: "starknet-remix-plugin" - CLUSTER: "starknet-remix-plugin-ecs-cluster" - SERVICE_NAME: "rocket-development-svc" - + DEV_CLUSTER: "starknet-remix-plugin-ecs-cluster" + DEV_SERVICE_NAME: "rocket-development-svc" + PROD_CLUSTER: "starknet-remix-plugin-production-ecs-cluster" + PROD_SERVICE_NAME: "rocket-production-svc" jobs: Build: runs-on: ubuntu-latest @@ -138,8 +139,8 @@ jobs: uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: task-definition: ${{ steps.task-def.outputs.task-definition }} - service: ${{ env.SERVICE_NAME }} - cluster: ${{ env.CLUSTER }} + service: ${{ env.DEV_SERVICE_NAME }} + cluster: ${{ env.DEV_CLUSTER }} wait-for-service-stability: true Deploy_Prod: if: github.ref == 'refs/heads/starknet-production-setup' @@ -175,6 +176,6 @@ jobs: uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: task-definition: ${{ steps.task-def.outputs.task-definition }} - service: ${{ env.SERVICE_NAME }} - cluster: ${{ env.CLUSTER }} + service: ${{ env.PROD_SERVICE_NAME }} + cluster: ${{ env.PROD_CLUSTER }} wait-for-service-stability: true