Skip to content

Commit

Permalink
Merge pull request #64 from 0xPolygonID/add_generic_aws_deployment
Browse files Browse the repository at this point in the history
chore: improve deployment to new account
  • Loading branch information
martinsaporiti authored Apr 9, 2024
2 parents b5cab7a + a634d2e commit 2ce9cd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Deploy verifier backend to Development AWS Environment new account
name: Deploy verifier backend to AWS Environment new account

on:
workflow_run:
workflows: ["Checks"]
branches: ["develop"]
branches: ["develop", "main"]
types:
- completed

env:
AWS_ACCOUNT_ID: ${{ secrets.DEV_AWS_ACCOUNT_ID_NEW }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
ENVIRONMENT: dev
ECR_REPOSITORY: verifier_backend
POLYGON_MUMBAI_CONTRACT_ADDRESS: "0x134B1BE34911E39A8397ec6289782989729807a4"
POLYGON_AMOY_CONTRACT_ADDRESS: "0x8c99F13dc5083b1E4c16f269735EaD4cFbc4970d"
POLYGON_MAIN_CONTRACT_ADDRESS: "0x624ce98D2d27b20b8f8d521723Df8fC4db71D79D"

jobs:
build-backend:
environment:
name: ${{ github.ref_name }}

name: Build and push latest image to AWS
permissions:
id-token: write
contents: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
environment: dev

steps:
- name: Checkout code
Expand Down Expand Up @@ -59,6 +59,8 @@ jobs:

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID_NEW }}
with:
aws-region: ${{ env.AWS_DEFAULT_REGION }}
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/PolygonIDActionsRole
Expand Down
85 changes: 0 additions & 85 deletions .github/workflows/prod_deploy_new_account.yml

This file was deleted.

0 comments on commit 2ce9cd7

Please sign in to comment.