Skip to content

Commit ce81904

Browse files
committed
Fix cloudformation build
1 parent dad7525 commit ce81904

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.aws/pondo-bot-stack.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Parameters:
1313
Description: The latest image tag to be used for the Docker image
1414
Type: String
1515
Default: tag
16+
BranchName:
17+
Description: The branch name of the GitHub repository
18+
Type: String
19+
Default: main
1620

1721
Resources:
1822
PondoInstanceProfile:
@@ -23,7 +27,7 @@ Resources:
2327
PondoBotInstance:
2428
Type: 'AWS::EC2::Instance'
2529
Properties:
26-
InstanceType: 'c6a.2xlarge'
30+
InstanceType: 'c6a.large'
2731
IamInstanceProfile: !Ref PondoInstanceProfile
2832
ImageId: !Ref PondoBotAMIId
2933
SecurityGroupIds:
@@ -48,7 +52,7 @@ Resources:
4852
docker run -d --restart always -p 80:80 -p 443:443 ${PondoBotRepository}:${LatestTag}
4953
Tags:
5054
- Key: Name
51-
Value: PondoBotInstance
55+
Value: !Join ['', ['PondoBot-', !Ref 'BranchName']]
5256
- Key: AccessControl
5357
Value: PondoBot
5458

.github/workflows/main-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
environment: Mainnet
1717
region: 'us-east-2'
1818
github_actions_role: 'pondo-bot-role'
19-
network: 'TestnetV0'
19+
network: 'MainnetV0'
2020
rpc_url: 'https://mainnet.aleorpc.com'
2121
client_url: 'https://mainnet.aleorpc.com'
2222
epoch_blocks: '80888'

.github/workflows/provision-bot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@ jobs:
132132
capabilities: 'CAPABILITY_NAMED_IAM'
133133
no-fail-on-empty-changeset: "1"
134134
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 }}

0 commit comments

Comments
 (0)