Skip to content

Commit

Permalink
Merge branch 'feature/docker-image' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ZZ3n committed Sep 16, 2024
2 parents 5073f7a + be06f8d commit c07f1c5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ jobs:
container-name: ${{ env.CONTAINER_NAME }}
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: ${{ env.ECS_SERVICE }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true
- name: Register new ECS task definition with CodeDeploy
uses: aws-actions/aws-cli-action@v1
run: |
aws ecs update-service \
--cluster ${{ env.ECS_CLUSTER }} \
--service ${{ env.ECS_SERVICE }} \
--task-definition ${{ steps.task-def.outputs.task-definition }} \
--deployment-controller type=CODE_DEPLOY
9 changes: 9 additions & 0 deletions appspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 0.0
Resources:
- TargetService:
Type: AWS::ECS::Service
Properties:
TaskDefinition: "arn:aws:ecs:ap-northeast-2:202533511551:task/ChunsikDevCluster/c8ee01484acd41d2a61c98d754b007d1:3"
LoadBalancerInfo:
ContainerName: "dev-fe-container"
ContainerPort: 3000

0 comments on commit c07f1c5

Please sign in to comment.