-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (31 loc) · 1.2 KB
/
deploy.testnet.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: CD for Testnet
on:
push:
tags:
- '**beta-testnet**'
jobs:
deploy-testnet:
runs-on: ubuntu-latest
environment:
name: Testnet
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
aws-region: ${{ secrets.TESTNET_AWS_REGION }}
- name: Deploy rif-relay-server on TESTNET
run: |
aws ssm send-command \
--document-name "AWS-RunRemoteScript" \
--instance-ids ""${{ secrets.TESTNET_EC2_ID }}"" \
--region=${{ secrets.TESTNET_AWS_REGION }} \
--parameters '{"sourceType":["GitHub"],"sourceInfo":["{\"owner\":\"rootstock\", \"repository\":\"ask-devops\", \"path\": \"rif-relay/\", \"tokenInfo\":\"{{ssm-secure:github-token}}\"}"],"commandLine":["deploy-testnet.sh"]}'