File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ jobs:
6969 uses : aws-actions/amazon-ecs-render-task-definition@v1
7070 with :
7171 task-definition : task-definition.json
72- container-name : alpine
72+ container-name : ms-gin-go-container
7373 image : ${{ steps.build-image.outputs.image }}
7474
7575 - name : Deploy Amazon ECS task definition
7676 uses : aws-actions/amazon-ecs-deploy-task-definition@v1
7777 with :
7878 task-definition : ${{ steps.task-def.outputs.task-definition }}
79- service : alpine -service
80- cluster : default
79+ service : ms-gin-go-container -service
80+ cluster : default-dev
8181 wait-for-service-stability : true
Original file line number Diff line number Diff line change 1414 "awslogs-stream-prefix" : " ecs"
1515 }
1616 },
17- "entryPoint" : [],
17+ "entryPoint" : [
18+ " sh" ,
19+ " -c"
20+ ],
1821 "portMappings" : [
1922 {
2023 "hostPort" : 80 ,
2124 "protocol" : " tcp" ,
2225 "containerPort" : 80
2326 }
2427 ],
25- "command" : [],
28+ "command" : [
29+ " /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\" "
30+ ],
2631 "linuxParameters" : null ,
2732 "cpu" : 256 ,
2833 "environment" : [],
5459 "dockerLabels" : null ,
5560 "systemControls" : null ,
5661 "privileged" : null ,
57- "name" : " alpine "
62+ "name" : " ms-gin-go-container "
5863 }
5964 ],
6065 "placementConstraints" : [],
6469 " EC2" ,
6570 " FARGATE"
6671 ],
67- "taskDefinitionArn" : " arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-definition:1 " ,
72+ "taskDefinitionArn" : " arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-definition:3 " ,
6873 "family" : " ms-gin-go-task-definition" ,
6974 "requiresAttributes" : [
7075 {
110115 ],
111116 "networkMode" : " awsvpc" ,
112117 "cpu" : " 256" ,
113- "revision" : 1 ,
118+ "revision" : 3 ,
114119 "status" : " ACTIVE" ,
115120 "inferenceAccelerators" : null ,
116121 "proxyConfiguration" : null ,
You can’t perform that action at this time.
0 commit comments