File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ jobs:
69
69
uses : aws-actions/amazon-ecs-render-task-definition@v1
70
70
with :
71
71
task-definition : task-definition.json
72
- container-name : alpine
72
+ container-name : ms-gin-go-container
73
73
image : ${{ steps.build-image.outputs.image }}
74
74
75
75
- name : Deploy Amazon ECS task definition
76
76
uses : aws-actions/amazon-ecs-deploy-task-definition@v1
77
77
with :
78
78
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
81
81
wait-for-service-stability : true
Original file line number Diff line number Diff line change 14
14
"awslogs-stream-prefix" : " ecs"
15
15
}
16
16
},
17
- "entryPoint" : [],
17
+ "entryPoint" : [
18
+ " sh" ,
19
+ " -c"
20
+ ],
18
21
"portMappings" : [
19
22
{
20
23
"hostPort" : 80 ,
21
24
"protocol" : " tcp" ,
22
25
"containerPort" : 80
23
26
}
24
27
],
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
+ ],
26
31
"linuxParameters" : null ,
27
32
"cpu" : 256 ,
28
33
"environment" : [],
54
59
"dockerLabels" : null ,
55
60
"systemControls" : null ,
56
61
"privileged" : null ,
57
- "name" : " alpine "
62
+ "name" : " ms-gin-go-container "
58
63
}
59
64
],
60
65
"placementConstraints" : [],
64
69
" EC2" ,
65
70
" FARGATE"
66
71
],
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 " ,
68
73
"family" : " ms-gin-go-task-definition" ,
69
74
"requiresAttributes" : [
70
75
{
110
115
],
111
116
"networkMode" : " awsvpc" ,
112
117
"cpu" : " 256" ,
113
- "revision" : 1 ,
118
+ "revision" : 3 ,
114
119
"status" : " ACTIVE" ,
115
120
"inferenceAccelerators" : null ,
116
121
"proxyConfiguration" : null ,
You can’t perform that action at this time.
0 commit comments