From 5bc2470296065dcfca50961b11adb3c59ec164eb Mon Sep 17 00:00:00 2001 From: Takwa Date: Thu, 2 Mar 2023 13:51:51 +0100 Subject: [PATCH] remove ap-northeast-1 workflow --- .../workflows/production-ap-northeast-1.yml | 101 ------------------ .../production-ap-northeast-1.yml | 67 ------------ 2 files changed, 168 deletions(-) delete mode 100644 .github/workflows/production-ap-northeast-1.yml delete mode 100644 pocket-gateway/tasks/production/ap-northeast-1/production-ap-northeast-1.yml diff --git a/.github/workflows/production-ap-northeast-1.yml b/.github/workflows/production-ap-northeast-1.yml deleted file mode 100644 index b6938e51..00000000 --- a/.github/workflows/production-ap-northeast-1.yml +++ /dev/null @@ -1,101 +0,0 @@ -# .github/workflows: DO NOT MODIFY HERE BUT RATHER REFER TO THEIR CORRESPONDING -# TEMPLATE IN THE POCKET-GATEWWAY FOLDER OTHERWISE YOUR CHANGES WILL BE OVERWRITTEN -name: Terraform Production Deployment ap-northeast-1 - -on: - push: - branches: [master, eth-altruist] - -jobs: - deploy: - name: Gateway - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ap-northeast-1 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - name: Make envfile ap-northeast-1 - uses: SpicyPizza/create-envfile@v1 - with: - envkey_GATEWAY_CLIENT_PRIVATE_KEY: ${{ secrets.POCKET_NETWORK_PRODUCTION_CLIENT_PRIVATE_KEY }} - envkey_GATEWAY_CLIENT_PASSPHRASE: ${{ secrets.POCKET_NETWORK_PRODUCTION_CLIENT_PASSPHRASE }} - envkey_REDIS_LOCAL_TTL_FACTOR: ${{ secrets.REDIS_LOCAL_TTL_FACTOR }} - envkey_BLOCKED_ADDRESSES_URL: ${{ secrets.BLOCKED_ADDRESSES_URL }} - envkey_PHD_BASE_URL: ${{ secrets.PHD_BASE_URL }} - envkey_PHD_API_KEY: ${{ secrets.PHD_API_KEY_SERVICE_PRODUCTION }} - envkey_DATABASE_ENCRYPTION_KEY: ${{ secrets.DATABASE_PRODUCTION_ENCRYPTION_KEY }} - envkey_DISPATCH_URL: ${{ secrets.DISPATCH_URL }} - envkey_ALTRUISTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_ALTRUISTS }} - envkey_REDIRECTS: ${{ secrets.POCKET_NETWORK_PRODUCTION_REDIRECTS }} - envkey_LOCAL_REDIS_ENDPOINT: 172.17.0.1:6379 - envkey_REDIS_PORT: 6379 - envkey_POCKET_SESSION_BLOCK_FREQUENCY: 4 - envkey_POCKET_BLOCK_TIME: 1038000 - envkey_POCKET_RELAY_RETRIES: 0 - envkey_DEFAULT_SYNC_ALLOWANCE: 5 - envkey_DEFAULT_LOG_LIMIT_BLOCKS: 10000 - envkey_AAT_PLAN: premium - envkey_NODE_ENV: production - envkey_PSQL_CONNECTION: ${{ secrets.PSQL_CONNECTION }} - envkey_PSQL_CERTIFICATE: https://s3.amazonaws.com/rds-downloads/rds-ca-2019-root.pem - envkey_LOG_TO_CLOUDWATCH: false - envkey_AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - envkey_AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - envkey_COMMIT_HASH: ${{ github.sha }} - envkey_ARCHIVAL_CHAINS: 0022,0028,0010,000A,000B,000C - envkey_LOG_TO_LOKI: ${{ secrets.LOG_TO_LOKI }} - envkey_LOKI_BASIC_AUTH: ${{ secrets.LOKI_BASIC_AUTH }} - envkey_LOKI_HOST: ${{ secrets.LOKI_HOST }} - envkey_ALWAYS_REDIRECT_TO_ALTRUISTS: ${{ secrets.ALWAYS_REDIRECT_TO_ALTRUISTS }} - envkey_SILENT_LOGGING: true - envkey_LOG_CHERRY_PICKER_STATS: ${{ secrets.LOG_CHERRY_PICKER_STATS }} - envkey_RATE_LIMITER_URL: ${{ secrets.RATE_LIMITER_URL }} - envkey_RATE_LIMITER_TOKEN: ${{ secrets.RATE_LIMITER_TOKEN }} - envkey_INFLUX_URLS: ${{ secrets.INFLUX_URLS }} - envkey_INFLUX_TOKENS: ${{ secrets.INFLUX_TOKENS }} - envkey_INFLUX_ORGS: ${{ secrets.INFLUX_ORGS }} - envkey_ALTRUIST_ONLY_CHAINS: ${{ secrets.ALTRUIST_ONLY_CHAINS }} - envkey_GATEWAY_HOST: ${{ secrets.GATEWAY_HOST }} - envkey_REMOTE_REDIS_ENDPOINT: gateway-prod-redis.3vxfd0.clustercfg.apne1.cache.amazonaws.com - envkey_REGION: 'ap-northeast-1' - envkey_REGION_NAME: 'ap-northeast-1' - file_name: .env - - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: gateway-prod - IMAGE_TAG: latest - run: | - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - - - name: Fill in the new image ID / ap-northeast-1 - gateway - id: task-def-ap-northeast-1-gateway - uses: aws-actions/amazon-ecs-render-task-definition@master - with: - task-definition: pocket-gateway/tasks/production/ecs-task-definition.json - container-name: gateway - image: ${{ steps.build-image.outputs.image }} - - - name: Deploy / ap-northeast-1 - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def-ap-northeast-1-gateway.outputs.task-definition }} - service: gateway-prod - cluster: gateway-prod - wait-for-service-stability: true diff --git a/pocket-gateway/tasks/production/ap-northeast-1/production-ap-northeast-1.yml b/pocket-gateway/tasks/production/ap-northeast-1/production-ap-northeast-1.yml deleted file mode 100644 index 06d3eb00..00000000 --- a/pocket-gateway/tasks/production/ap-northeast-1/production-ap-northeast-1.yml +++ /dev/null @@ -1,67 +0,0 @@ -# .github/workflows: DO NOT MODIFY HERE BUT RATHER REFER TO THEIR CORRESPONDING -# TEMPLATE IN THE POCKET-GATEWWAY FOLDER OTHERWISE YOUR CHANGES WILL BE OVERWRITTEN -{{! Template used to generate workflow file with shared-enviroments }} -{{=[[ ]]=}} -name: Terraform Production Deployment ap-northeast-1 - -on: - push: - branches: [master, eth-altruist] - -jobs: - deploy: - name: Gateway - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ap-northeast-1 - - - name: Login to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v1 - - - name: Make envfile ap-northeast-1 - uses: SpicyPizza/create-envfile@v1 - with: - [[#shared_envs]] - envkey_[[key]]: [[&value]] - [[/shared_envs]] - envkey_REMOTE_REDIS_ENDPOINT: gateway-prod-redis.3vxfd0.clustercfg.apne1.cache.amazonaws.com - envkey_REGION: 'ap-northeast-1' - envkey_REGION_NAME: 'ap-northeast-1' - file_name: .env - - - name: Build, tag, and push image to Amazon ECR - id: build-image - env: - ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: gateway-prod - IMAGE_TAG: latest - run: | - docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG - echo "::set-output name=image::$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" - - - name: Fill in the new image ID / ap-northeast-1 - gateway - id: task-def-ap-northeast-1-gateway - uses: aws-actions/amazon-ecs-render-task-definition@master - with: - task-definition: pocket-gateway/tasks/production/ecs-task-definition.json - container-name: gateway - image: ${{ steps.build-image.outputs.image }} - - - name: Deploy / ap-northeast-1 - uses: aws-actions/amazon-ecs-deploy-task-definition@v1 - with: - task-definition: ${{ steps.task-def-ap-northeast-1-gateway.outputs.task-definition }} - service: gateway-prod - cluster: gateway-prod - wait-for-service-stability: true