diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 49ab7ad..d64b94a 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -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 diff --git a/task-definition.json b/task-definition.json index e53acb0..5e4d1c7 100644 --- a/task-definition.json +++ b/task-definition.json @@ -14,7 +14,10 @@ "awslogs-stream-prefix": "ecs" } }, - "entryPoint": [], + "entryPoint": [ + "sh", + "-c" + ], "portMappings": [ { "hostPort": 80, @@ -22,7 +25,9 @@ "containerPort": 80 } ], - "command": [], + "command": [ + "/bin/sh -c \"echo '
Your application is now running on a container in Amazon ECS.