diff --git a/.github/workflows/devnet-deploy.yml b/.github/workflows/devnet-deploy.yml index d2fe6eb6..df9ba017 100644 --- a/.github/workflows/devnet-deploy.yml +++ b/.github/workflows/devnet-deploy.yml @@ -16,7 +16,7 @@ env: REGISTRY: "599564732950.dkr.ecr.us-east-2.amazonaws.com" REPOSITORY: "zksync-remix-plugin" DEV_CLUSTER: "zksync-remix-plugin-ecs-cluster" - DEV_SERVICE_NAME: "rocket-development-svc" + DEV_SERVICE_NAME: "devnet-development-svc" PROD_CLUSTER: "zksync-remix-plugin-production-ecs-cluster" PROD_SERVICE_NAME: "rocket-production-svc" jobs: @@ -93,31 +93,6 @@ jobs: task-definition: task-definition.json container-name: "devnet" image: $REGISTRY/$REPOSITORY:devnet-${{ needs.Build.outputs.image-version }} - - - name: Deploy Amazon ECS task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def.outputs.task-definition }} - service: ${{ env.DEV_SERVICE_NAME }} - cluster: ${{ env.DEV_CLUSTER }} - wait-for-service-stability: true -# Deploy_Prod: -# if: github.ref == 'refs/heads/starknet-production-setup' -# runs-on: ubuntu-latest -# needs: Build -# steps: -# -# - name: Configure AWS credentials -# uses: aws-actions/configure-aws-credentials@v1 -# with: -# aws-region: us-east-2 -# role-to-assume: arn:aws:iam::228016254426:role/Aws-GH-Action-Assume-Role-Starknet-Production -# role-session-name: GHStarknet -# -# - name: Download task definition -# run: | -# aws ecs describe-task-definition --task-definition starknet-remix-production-rocket --query taskDefinition > task-definition.json -# # - name: Fill in the new image ID in the Amazon ECS task definition # id: task-def # uses: aws-actions/amazon-ecs-render-task-definition@v1 @@ -128,14 +103,13 @@ jobs: # # inject the expected React package URL for CORS logic # environment-variables: | # RUST_LOG=INFO -# VITE_URL=https://cairo-remix-dev.nethermind.io +# VITE_URL=https://zksync-plugin.nethermind.dev # PROMTAIL_USERNAME=${{secrets.PROMTAIL_USERNAME}} # PROMTAIL_PASSWORD=${{secrets.PROMTAIL_PASSWORD}} -# -# - name: Deploy Amazon ECS task definition -# uses: aws-actions/amazon-ecs-deploy-task-definition@v1 -# with: -# task-definition: ${{ steps.task-def.outputs.task-definition }} -# service: ${{ env.PROD_SERVICE_NAME }} -# cluster: ${{ env.PROD_CLUSTER }} -# wait-for-service-stability: true + - name: Deploy Amazon ECS task definition + uses: aws-actions/amazon-ecs-deploy-task-definition@v1 + with: + task-definition: ${{ steps.task-def.outputs.task-definition }} + service: ${{ env.DEV_SERVICE_NAME }} + cluster: ${{ env.DEV_CLUSTER }} + wait-for-service-stability: true