Skip to content

Commit

Permalink
test: trigger deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
luislhl committed Aug 8, 2024
1 parent 9ce3152 commit 68d4b32
Showing 1 changed file with 135 additions and 147 deletions.
282 changes: 135 additions & 147 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,180 +74,168 @@ jobs:

if: ${{ needs.init.outputs.environment == 'dev' }}

steps:
- name: Call reusable deploy workflow
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::769498303037:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:769498303037:secret:ExplorerService/dev-0ikehC
serverless_stage: dev
docker_image_tag: dev-${{ github.sha }}-${{ needs.init.outputs.timestamp }}
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fdev&region=eu-central-1
api_port: 3001
hathor_core_url: https://node.explorer.testnet.hathor.network
hathor_nodes: https://node1.testnet.hathor.network,https://node.explorer.testnet.hathor.network
redis_key_prefix: hathor-explorer-service-dev
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-dev
cors_allowed_regex: .*
elastic_index: dev-token
elastic_tx_index: dev-tx
elastic_token_balances_index: dev-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::769498303037:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:769498303037:secret:ExplorerService/dev-0ikehC
serverless_stage: dev
docker_image_tag: dev-${{ github.sha }}-${{ needs.init.outputs.timestamp }}
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fdev&region=eu-central-1
api_port: 3001
hathor_core_url: https://node.explorer.testnet.hathor.network
hathor_nodes: https://node1.testnet.hathor.network,https://node.explorer.testnet.hathor.network
redis_key_prefix: hathor-explorer-service-dev
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-dev
cors_allowed_regex: .*
elastic_index: dev-token
elastic_tx_index: dev-tx
elastic_token_balances_index: dev-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
deploy-testnet:
runs-on: ubuntu-latest
needs: [init, dependencies]

if: ${{ needs.init.outputs.environment == 'testnet' }}

steps:
- name: Call reusable deploy workflow
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::769498303037:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:769498303037:secret:ExplorerService/testnet-lcBuyc
serverless_stage: testnet
docker_image_tag: testnet-${{ github.sha }}-${{ needs.init.outputs.timestamp }}
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Ftestnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node.explorer.testnet.hathor.network
hathor_nodes: https://node1.testnet.hathor.network,https://node.explorer.testnet.hathor.network
redis_key_prefix: hathor-explorer-service-testnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-testnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: testnet-token
elastic_tx_index: testnet-tx
elastic_token_balances_index: testnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::769498303037:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:769498303037:secret:ExplorerService/testnet-lcBuyc
serverless_stage: testnet
docker_image_tag: testnet-${{ github.sha }}-${{ needs.init.outputs.timestamp }}
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Ftestnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node.explorer.testnet.hathor.network
hathor_nodes: https://node1.testnet.hathor.network,https://node.explorer.testnet.hathor.network
redis_key_prefix: hathor-explorer-service-testnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-testnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: testnet-token
elastic_tx_index: testnet-tx
elastic_token_balances_index: testnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
deploy-nano-testnet:
runs-on: ubuntu-latest
needs: [init, dependencies]

if: ${{ needs.init.outputs.environment == 'testnet' }}

steps:
- name: Call reusable deploy workflow
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::471112952246:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:471112952246:secret:ExplorerService/nano-testnet-MWxHpF
serverless_stage: nano
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fnano-testnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node1.nano-testnet.hathor.network
hathor_nodes: https://node1.nano-testnet.hathor.network
redis_key_prefix: hathor-explorer-service-nano-testnet
redis_port: 6379
redis_db: 1
metadata_bucket: hathor-explorer-metadata-nano-testnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: nano-testnet-token
elastic_tx_index: nano-testnet-tx
elastic_token_balances_index: nano-testnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::471112952246:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:471112952246:secret:ExplorerService/nano-testnet-MWxHpF
serverless_stage: nano
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fnano-testnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node1.nano-testnet.hathor.network
hathor_nodes: https://node1.nano-testnet.hathor.network
redis_key_prefix: hathor-explorer-service-nano-testnet
redis_port: 6379
redis_db: 1
metadata_bucket: hathor-explorer-metadata-nano-testnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: nano-testnet-token
elastic_tx_index: nano-testnet-tx
elastic_token_balances_index: nano-testnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
deploy-ekvilibro-testnet:
runs-on: ubuntu-latest
needs: [init, dependencies]

if: ${{ needs.init.outputs.environment == 'testnet' }}

steps:
- name: Call reusable deploy workflow
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::730335348496:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:730335348496:secret:ExplorerService/ekvilibro-testnet-DaDPgT
serverless_stage: ekvilibro
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fekvilibro-testnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node-side-dag.ekvilibro-testnet.hathor.network
hathor_nodes: https://node-side-dag.ekvilibro-testnet.hathor.network
redis_key_prefix: hathor-explorer-service-ekvilibro-testnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-ekvilibro-testnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: ekvilibro-testnet-token
elastic_tx_index: ekvilibro-testnet-tx
elastic_token_balances_index: ekvilibro-testnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::730335348496:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:730335348496:secret:ExplorerService/ekvilibro-testnet-DaDPgT
serverless_stage: ekvilibro
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fekvilibro-testnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node-side-dag.ekvilibro-testnet.hathor.network
hathor_nodes: https://node-side-dag.ekvilibro-testnet.hathor.network
redis_key_prefix: hathor-explorer-service-ekvilibro-testnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-ekvilibro-testnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: ekvilibro-testnet-token
elastic_tx_index: ekvilibro-testnet-tx
elastic_token_balances_index: ekvilibro-testnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
deploy-ekvilibro-mainnet:
runs-on: ubuntu-latest
needs: [init, dependencies]

if: ${{ needs.init.outputs.environment == 'mainnet' }}

steps:
- name: Call reusable deploy workflow
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::730335348496:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:730335348496:secret:ExplorerService/ekvilibro-mainnet-yvc3s2
serverless_stage: ekvi-main
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fekvilibro-mainnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node-side-dag.ekvilibro-mainnet.hathor.network
hathor_nodes: https://node-side-dag.ekvilibro-mainnet.hathor.network
redis_key_prefix: hathor-explorer-service-ekvilibro-mainnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-ekvilibro-mainnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: ekvilibro-mainnet-token
elastic_tx_index: ekvilibro-mainnet-tx
elastic_token_balances_index: ekvilibro-mainnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::730335348496:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:730335348496:secret:ExplorerService/ekvilibro-mainnet-yvc3s2
serverless_stage: ekvi-main
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fekvilibro-mainnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node-side-dag.ekvilibro-mainnet.hathor.network
hathor_nodes: https://node-side-dag.ekvilibro-mainnet.hathor.network
redis_key_prefix: hathor-explorer-service-ekvilibro-mainnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-ekvilibro-mainnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: ekvilibro-mainnet-token
elastic_tx_index: ekvilibro-mainnet-tx
elastic_token_balances_index: ekvilibro-mainnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
deploy-mainnet:
runs-on: ubuntu-latest
needs: [init, dependencies]

if: ${{ needs.init.outputs.environment == 'mainnet' }}

steps:
- name: Call reusable deploy workflow
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::769498303037:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:769498303037:secret:ExplorerService/mainnet-DYYHfn
serverless_stage: mainnet
docker_image_tag: ${GITHUB_REF#refs/*/}
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fmainnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node.explorer.hathor.network
hathor_nodes: https://node.explorer.hathor.network,https://node1.mainnet.hathor.network,https://node2.mainnet.hathor.network
redis_key_prefix: hathor-explorer-service-mainnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-mainnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: mainnet-token
elastic_tx_index: mainnet-tx
elastic_token_balances_index: mainnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true
uses: ./.github/reusable-workflows/deploy.yml
with:
aws_region: eu-central-1
aws_iam_role: arn:aws:iam::769498303037:role/ExplorerServiceGitHubActionsRole
aws_secret_arn: arn:aws:secretsmanager:eu-central-1:769498303037:secret:ExplorerService/mainnet-DYYHfn
serverless_stage: mainnet
docker_image_tag: ${GITHUB_REF#refs/*/}
# XXX: Some env vars come from the secret https://eu-central-1.console.aws.amazon.com/secretsmanager/secret?name=ExplorerService%2Fmainnet&region=eu-central-1
api_port: 3001
hathor_core_url: https://node.explorer.hathor.network
hathor_nodes: https://node.explorer.hathor.network,https://node1.mainnet.hathor.network,https://node2.mainnet.hathor.network
redis_key_prefix: hathor-explorer-service-mainnet
redis_port: 6379
redis_db: 0
metadata_bucket: hathor-explorer-metadata-mainnet
cors_allowed_regex: https?:\/\/([a-z0-9]*\.){0,5}hathor\.network
elastic_index: mainnet-token
elastic_tx_index: mainnet-tx
elastic_token_balances_index: mainnet-token-balance
healthcheck_hathor_core_enabled: true
healthcheck_wallet_service_db_enabled: true
healthcheck_elasticsearch_enabled: true
healthcheck_redis_enabled: true

0 comments on commit 68d4b32

Please sign in to comment.