Skip to content

Commit d92223b

Browse files
authored
Deploy Penny ECS instance to arm64 as well (#378)
* Deploy Penny to arm64 * Delete unused port mappings
1 parent 57e269e commit d92223b

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

.github/workflows/deploy-all-lambdas.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
deploy-lambdas:
10-
runs-on: ubuntu-24.04-arm
10+
runs-on: ubuntu-latest-arm
1111
container: amazonlinux:2023
1212

1313
env:
@@ -48,7 +48,7 @@ jobs:
4848
tr '\n' ' '
4949
)" >> $GITHUB_OUTPUT
5050
51-
- name: Build lambdas
51+
- name: Build and package lambdas
5252
run: |
5353
mkdir ./zips
5454
for name in ${{ steps.find_package_names.outputs.names }}; do
@@ -67,7 +67,7 @@ jobs:
6767
path: .build
6868
key: "lambdas-build-${{ runner.os }}-${{ github.event.after }}"
6969

70-
- name: Package and deploy lambdas
70+
- name: Deploy lambdas
7171
run: |
7272
for name in ${{ steps.find_package_names.outputs.names }}; do
7373
aws s3api put-object \

.github/workflows/deploy-penny.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
deploy:
1010
name: Deploy Stack
1111

12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-latest-arm
1313

1414
container: swift:6.2-noble
1515

@@ -71,9 +71,6 @@ jobs:
7171
ECR_REPOSITORY: penny-bot-discord-image
7272
IMAGE_TAG: ${{ github.sha }}
7373
run: |
74-
# Build a docker container and
75-
# push it to ECR so that it can
76-
# be deployed to ECS.
7774
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile . \
7875
--build-arg SWIFT_CONFIGURATION=release \
7976
--build-arg EXEC_NAME=Penny

deploy/penny-discord-bot-task.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
{
66
"name": "penny-bot",
77
"image": "177420307256.dkr.ecr.eu-west-1.amazonaws.com/penny-bot-discord-image:latest",
8-
"portMappings": [
9-
{
10-
"containerPort": 8080,
11-
"protocol": "tcp"
12-
}
13-
],
148
"essential": true,
159
"logConfiguration": {
1610
"logDriver": "awslogs",
@@ -57,6 +51,10 @@
5751
"requiresCompatibilities": [
5852
"FARGATE"
5953
],
54+
"runtimePlatform": {
55+
"cpuArchitecture": "ARM64",
56+
"operatingSystemFamily": "LINUX"
57+
},
6058
"cpu": "256",
6159
"memory": "512",
6260
"executionRoleArn": "arn:aws:iam::177420307256:role/ecsTaskExecutionRole",

0 commit comments

Comments
 (0)