Skip to content

Commit 465d073

Browse files
Merge pull request #14 from laironacosta/feature/deploy-to-aws-ecs
updating aws yml to deploy on ecs
2 parents 0745b5f + af692fe commit 465d073

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/aws.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
id: build-image
5555
env:
5656
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
57-
ECR_REPOSITORY: dev-repos
57+
ECR_REPOSITORY: ms-gin-go
5858
IMAGE_TAG: ${{ github.sha }}
5959
run: |
6060
# Build a docker container and
@@ -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: ms-gin-go-app
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: ms-gin-go-app-service
79+
service: ms-gin-go-container-service
8080
cluster: dev-cluster
8181
wait-for-service-stability: true

task-definition.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"logDriver": "awslogs",
1010
"secretOptions": null,
1111
"options": {
12-
"awslogs-group": "/ecs/ms-gin-go-app-task-definition",
12+
"awslogs-group": "/ecs/ms-gin-go-task-def",
1313
"awslogs-region": "us-east-2",
1414
"awslogs-stream-prefix": "ecs"
1515
}
@@ -42,7 +42,7 @@
4242
"memoryReservation": 512,
4343
"volumesFrom": [],
4444
"stopTimeout": null,
45-
"image": "027479467189.dkr.ecr.us-east-2.amazonaws.com/dev-repos",
45+
"image": "027479467189.dkr.ecr.us-east-2.amazonaws.com/ms-gin-go",
4646
"startTimeout": null,
4747
"firelensConfiguration": null,
4848
"dependsOn": null,
@@ -59,7 +59,7 @@
5959
"dockerLabels": null,
6060
"systemControls": null,
6161
"privileged": null,
62-
"name": "ms-gin-go-app"
62+
"name": "ms-gin-go-container"
6363
}
6464
],
6565
"placementConstraints": [],
@@ -69,8 +69,8 @@
6969
"EC2",
7070
"FARGATE"
7171
],
72-
"taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-app-task-definition:1",
73-
"family": "ms-gin-go-app-task-definition",
72+
"taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-def:1",
73+
"family": "ms-gin-go-task-def",
7474
"requiresAttributes": [
7575
{
7676
"targetId": null,

0 commit comments

Comments
 (0)