Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperOuss committed Mar 28, 2024
2 parents 8288cb4 + f1df155 commit 6b2abd9
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: production

env:
AWS_ACCOUNT_ID: "021748665536"
Expand Down Expand Up @@ -51,20 +52,20 @@ jobs:
run: >
aws ecs describe-task-definition
--task-definition "arn:aws:ecs:${{ env.AWS_REGION }}:${{ env.AWS_ACCOUNT_ID }}:task-definition/${{ env.TASK_APP }}" --region "${{ env.AWS_REGION }}" --query 'taskDefinition'
> task-definition-app.json
> task-definition.json
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def-app
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition-app.json
task-definition: task-definition.json
container-name: ${{ env.CONTAINER_APP }}
image: ${{ steps.build-image-app.outputs.image }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def-app.outputs.task-definition }}
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ env.SERVICE_APP }}
cluster: ${{ env.CLUSTER }}
wait-for-service-stability: true
Expand Down
1 change: 1 addition & 0 deletions copilot/room-mapping/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ network:
environments:
production:
http:
alb: white-Publi-YO6OGAEXCY80
alias: room-mapping.wlbl.cloud
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.18.2"
}
}

0 comments on commit 6b2abd9

Please sign in to comment.