File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ Parameters:
13
13
Description : The latest image tag to be used for the Docker image
14
14
Type : String
15
15
Default : tag
16
+ BranchName :
17
+ Description : The branch name of the GitHub repository
18
+ Type : String
19
+ Default : main
16
20
17
21
Resources :
18
22
PondoInstanceProfile :
@@ -23,7 +27,7 @@ Resources:
23
27
PondoBotInstance :
24
28
Type : ' AWS::EC2::Instance'
25
29
Properties :
26
- InstanceType : ' c6a.2xlarge '
30
+ InstanceType : ' c6a.large '
27
31
IamInstanceProfile : !Ref PondoInstanceProfile
28
32
ImageId : !Ref PondoBotAMIId
29
33
SecurityGroupIds :
@@ -48,7 +52,7 @@ Resources:
48
52
docker run -d --restart always -p 80:80 -p 443:443 ${PondoBotRepository}:${LatestTag}
49
53
Tags :
50
54
- Key : Name
51
- Value : PondoBotInstance
55
+ Value : !Join ['', ['PondoBot-', !Ref 'BranchName']]
52
56
- Key : AccessControl
53
57
Value : PondoBot
54
58
Original file line number Diff line number Diff line change 16
16
environment : Mainnet
17
17
region : ' us-east-2'
18
18
github_actions_role : ' pondo-bot-role'
19
- network : ' TestnetV0 '
19
+ network : ' MainnetV0 '
20
20
rpc_url : ' https://mainnet.aleorpc.com'
21
21
client_url : ' https://mainnet.aleorpc.com'
22
22
epoch_blocks : ' 80888'
Original file line number Diff line number Diff line change @@ -132,4 +132,5 @@ jobs:
132
132
capabilities : ' CAPABILITY_NAMED_IAM'
133
133
no-fail-on-empty-changeset : " 1"
134
134
parameter-overrides : >-
135
- LatestTag=${{ steps.rename-pondo-bot-image.outputs.pondo-bot-image-tag }}
135
+ LatestTag=${{ steps.rename-pondo-bot-image.outputs.pondo-bot-image-tag }}
136
+ BranchName=${{ env.BRANCH_NAME }}
You can’t perform that action at this time.
0 commit comments