Skip to content

Commit

Permalink
Updating environment variables for service name and cluster to match …
Browse files Browse the repository at this point in the history
…development and production environments
  • Loading branch information
Asiya-Yunusa committed Oct 6, 2023
1 parent 0ff81eb commit c67f26f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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

0 comments on commit c67f26f

Please sign in to comment.