Skip to content

Commit

Permalink
comment out v2 deployment; (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcar121293 authored Feb 22, 2024
1 parent 547e26c commit 41f1363
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/deploy_mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,61 +77,61 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()

deploy_v2:
name: deploy v2
# deploy_v2:
# name: deploy v2

runs-on: ubuntu-latest

permissions:
contents: read
id-token: write
actions: write

steps:
- name: checkout the source code
uses: actions/checkout@v3

- name: checkout ecs repo
uses: actions/checkout@v3
with:
repository: sygmaprotocol/devops
token: ${{ secrets.GHCR_TOKEN }}
ref: main

- name: render jinja2 templates to task definition json files
uses: cuchi/[email protected]
with:
template: 'sygma-explorer/ecs/task_definition-explorer-indexer-${{ env.ENVIRONMENT }}-v2.j2'
output_file: 'sygma-explorer/ecs/task_definition-explorer-indexer-${{ env.ENVIRONMENT }}.json'
data_format: json
variables: |
awsAccountId=${{ env.AWS_MAINNET }}
awsRegion=${{ env.AWS_REGION }}
awsEnv=${{ env.ENVIRONMENT }}
DB_USERNAME=${{ secrets.MAIN_USERNAME_v2 }}
DB_PASSWORD=${{ secrets.MAIN_PASSWORD_v2 }}
imageTag=${{ inputs.deploy_v2 }}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::${{ env.AWS_MAINNET }}:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
aws-region: ${{ env.AWS_REGION }}
role-session-name: GithubActions

- name: Deploy to Amazon ECS
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: sygma-explorer/ecs/task_definition-explorer-indexer-${{ env.ENVIRONMENT }}.json
service: explorer-indexer-service-v2-${{ env.ENVIRONMENT }}
cluster: sygma-explorer-${{ env.ENVIRONMENT }}
wait-for-service-stability: true

- name: slack notify
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always()
# runs-on: ubuntu-latest

# permissions:
# contents: read
# id-token: write
# actions: write

# steps:
# - name: checkout the source code
# uses: actions/checkout@v3

# - name: checkout ecs repo
# uses: actions/checkout@v3
# with:
# repository: sygmaprotocol/devops
# token: ${{ secrets.GHCR_TOKEN }}
# ref: main

# - name: render jinja2 templates to task definition json files
# uses: cuchi/[email protected]
# with:
# template: 'sygma-explorer/ecs/task_definition-explorer-indexer-${{ env.ENVIRONMENT }}-v2.j2'
# output_file: 'sygma-explorer/ecs/task_definition-explorer-indexer-${{ env.ENVIRONMENT }}.json'
# data_format: json
# variables: |
# awsAccountId=${{ env.AWS_MAINNET }}
# awsRegion=${{ env.AWS_REGION }}
# awsEnv=${{ env.ENVIRONMENT }}
# DB_USERNAME=${{ secrets.MAIN_USERNAME_v2 }}
# DB_PASSWORD=${{ secrets.MAIN_PASSWORD_v2 }}
# imageTag=${{ inputs.deploy_v2 }}

# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
# role-to-assume: arn:aws:iam::${{ env.AWS_MAINNET }}:role/github-actions-${{ env.ENVIRONMENT }}-chainbridge
# aws-region: ${{ env.AWS_REGION }}
# role-session-name: GithubActions

# - name: Deploy to Amazon ECS
# uses: aws-actions/amazon-ecs-deploy-task-definition@v1
# with:
# task-definition: sygma-explorer/ecs/task_definition-explorer-indexer-${{ env.ENVIRONMENT }}.json
# service: explorer-indexer-service-v2-${{ env.ENVIRONMENT }}
# cluster: sygma-explorer-${{ env.ENVIRONMENT }}
# wait-for-service-stability: true

# - name: slack notify
# uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# fields: repo,message,commit,author,action,job,eventName,ref,workflow # selectable (default: repo,message)
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
# if: always()

0 comments on commit 41f1363

Please sign in to comment.