Skip to content

Commit 559ab64

Browse files
committed
build: adjust task definition
1 parent 36ff7de commit 559ab64

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
id: render-task-def
4444
uses: aws-actions/amazon-ecs-render-task-definition@v1
4545
with:
46-
task-definition: ${{ env.ECS_TASK_DEFINITION }}
46+
task-definition: task-definition.json
4747
container-name: ${{ env.CONTAINER_NAME }}
4848
image: ${{ steps.build-image.outputs.image }}
4949

task-definition.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"family": "emulador-task",
3+
"containerDefinitions": [
4+
{
5+
"name": "error_emulator",
6+
"image": "924609080348.dkr.ecr.us-east-2.amazonaws.com/romhenri/runtime-error-emulator:36ff7de85d25a719f9918f22593308d46444de36",
7+
"cpu": 256,
8+
"memory": 512,
9+
"essential": true
10+
}
11+
],
12+
"requiresCompatibilities": [
13+
"FARGATE"
14+
],
15+
"networkMode": "awsvpc",
16+
"cpu": "256",
17+
"memory": "512"
18+
}

0 commit comments

Comments
 (0)