feat(aws): all in microservices

This commit is contained in:
Stan Girard 2023-08-18 18:18:36 +02:00
parent 705e36e708
commit b3a6231274
4 changed files with 12 additions and 13 deletions

View File

@ -17,7 +17,7 @@
"essential": true,
"command": [
"uvicorn",
"main:app",
"chat_service:app",
"--host",
"0.0.0.0",
"--port",

View File

@ -17,7 +17,7 @@
"essential": true,
"command": [
"uvicorn",
"main:app",
"crawl_service:app",
"--host",
"0.0.0.0",
"--port",

View File

@ -17,7 +17,7 @@
"essential": true,
"command": [
"uvicorn",
"main:app",
"upload_service:app",
"--host",
"0.0.0.0",
"--port",

View File

@ -2,9 +2,8 @@ name: Deploy to Amazon ECS
on:
push:
branches: [ "main" ]
# tags:
# - 'v*'
tags:
- 'v*'
env:
AWS_REGION: eu-west-3
@ -99,10 +98,10 @@ jobs:
container-name: ${{ matrix.container }}
image: ${{env.ECR_REGISTRY}}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
# - name: Deploy Amazon ECS task definition for ${{ matrix.name }}
# uses: aws-actions/amazon-ecs-deploy-task-definition@v1
# with:
# task-definition: ${{ steps.task-def.outputs.task-definition }}
# service: ${{ matrix.service }}
# cluster: ${{ env.ECS_CLUSTER }}
# wait-for-service-stability: true
- name: Deploy Amazon ECS task definition for ${{ matrix.name }}
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
with:
task-definition: ${{ steps.task-def.outputs.task-definition }}
service: ${{ matrix.service }}
cluster: ${{ env.ECS_CLUSTER }}
wait-for-service-stability: true