-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 1 KB
/
release-validator.yml
File metadata and controls
37 lines (32 loc) · 1 KB
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
37
name: Create Validator Release
on:
push:
tags:
- "validator_node@*"
permissions:
id-token: write
contents: write
jobs:
release:
uses: ./.github/workflows/_release-template.yml
with:
tag: ${{ github.ref }}
secrets: inherit
rebuild-ec2:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.IAM_WORKFLOW_ROLE_PROTOCOL }}
role-session-name: protocol-core-session-id-${{ github.run_id }}
role-duration-seconds: 1200
- name: "Trigger rebuild via SSM"
run: |
aws ssm send-command \
--region us-east-1 \
--timeout-seconds 18000 \
--document-name "AWS-RunShellScript" \
--targets Key=tag:ValidatorTag,Values=ValidatorNodeEc2 \
--parameters commands=["bash /workspace/protocol-core/aws/validator-infra/rebuild-and-run.sh"]