Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Nov 7, 2023
1 parent 63dcb44 commit 37b810e
Showing 1 changed file with 9 additions and 35 deletions.
44 changes: 9 additions & 35 deletions .github/workflows/devnet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 37b810e

Please sign in to comment.