Skip to content

Commit e784203

Browse files
authored
Merge pull request #202 from dnd-side-project/dev
fix(workflow): ECS EC2๋กœ ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜
2 parents 12531a8 + 23522b1 commit e784203

File tree

2 files changed

+54
-3
lines changed

2 files changed

+54
-3
lines changed

โ€Ž.github/workflows/deploy-main-server.ymlโ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ env:
1414
AWS_REGION: ap-northeast-2
1515
CONTAINER_NAME: main-container
1616
ECR_REPOSITORY: dulakreposiotry
17-
ECS_CLUSTER: joyful-eagle-kco6mk
18-
ECS_SERVICE: main-server-service-z4k60m2s
19-
ECS_TASK_DEFINITION: main-server/main-server-revision1.json
17+
ECS_CLUSTER: happy-lion-zahji5
18+
ECS_SERVICE: main-server-ec2
19+
ECS_TASK_DEFINITION: main-server/main-server-ec2-revision1.json
2020
IMAGE_TAG: latest
2121

2222
jobs:
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"family": "main-server-ec2",
3+
"networkMode": "awsvpc",
4+
"requiresCompatibilities": ["EC2"],
5+
"cpu": "512",
6+
"memory": "1024",
7+
"runtimePlatform": {
8+
"cpuArchitecture": "X86_64",
9+
"operatingSystemFamily": "LINUX"
10+
},
11+
"taskRoleArn": "arn:aws:iam::814022331893:role/ecsTaskExecutionRole",
12+
"executionRoleArn": "arn:aws:iam::814022331893:role/ecsTaskExecutionRole",
13+
"containerDefinitions": [
14+
{
15+
"name": "main-container",
16+
"image": "814022331893.dkr.ecr.ap-northeast-2.amazonaws.com/dulakreposiotry:latest",
17+
"cpu": 0,
18+
"essential": true,
19+
"portMappings": [
20+
{
21+
"containerPort": 80,
22+
"hostPort": 80,
23+
"protocol": "tcp",
24+
"appProtocol": "http"
25+
},
26+
{
27+
"containerPort": 8083,
28+
"hostPort": 8083,
29+
"protocol": "tcp",
30+
"appProtocol": "http"
31+
},
32+
{
33+
"containerPort": 8080,
34+
"hostPort": 8080,
35+
"protocol": "tcp",
36+
"appProtocol": "http"
37+
}
38+
],
39+
"logConfiguration": {
40+
"logDriver": "awslogs",
41+
"options": {
42+
"awslogs-group": "/ecs/main-server",
43+
"awslogs-create-group": "true",
44+
"awslogs-region": "ap-northeast-2",
45+
"awslogs-stream-prefix": "ecs"
46+
}
47+
}
48+
}
49+
],
50+
"volumes": []
51+
}

0 commit comments

Comments
ย (0)