Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ jobs:
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: alpine
container-name: ms-gin-go-container
image: ${{ steps.build-image.outputs.image }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: alpine-service
cluster: default
service: ms-gin-go-container-service
cluster: default-dev
wait-for-service-stability: true
15 changes: 10 additions & 5 deletions task-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@
"awslogs-stream-prefix": "ecs"
}
},
"entryPoint": [],
"entryPoint": [
"sh",
"-c"
],
"portMappings": [
{
"hostPort": 80,
"protocol": "tcp",
"containerPort": 80
}
],
"command": [],
"command": [
"/bin/sh -c \"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\""
],
"linuxParameters": null,
"cpu": 256,
"environment": [],
Expand Down Expand Up @@ -54,7 +59,7 @@
"dockerLabels": null,
"systemControls": null,
"privileged": null,
"name": "alpine"
"name": "ms-gin-go-container"
}
],
"placementConstraints": [],
Expand All @@ -64,7 +69,7 @@
"EC2",
"FARGATE"
],
"taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-definition:1",
"taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-definition:3",
"family": "ms-gin-go-task-definition",
"requiresAttributes": [
{
Expand Down Expand Up @@ -110,7 +115,7 @@
],
"networkMode": "awsvpc",
"cpu": "256",
"revision": 1,
"revision": 3,
"status": "ACTIVE",
"inferenceAccelerators": null,
"proxyConfiguration": null,
Expand Down