Skip to content

Issue #748: Update dev and demo service domain names (#755) #6

Issue #748: Update dev and demo service domain names (#755)

Issue #748: Update dev and demo service domain names (#755) #6

name: Deploy LIF Advisor API to Amazon ECS
env:
AWS_REGION: us-east-1
GHA_ROLE: "arn:aws:iam::381492161417:role/lif-github-actions-dev"
ECS_CLUSTER: dev
ECS_SERVICE: advisor-api-FARGATE
permissions:
id-token: write
contents: read
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- .github/workflows/lif_advisor_api.yml
- bases/lif_advisor_restapi/**
- cloudformation/dev-lif-advisor-api.params
- cloudformation/lif-advisor-taskdef-includes.yml
- components/lif/langchain_agent/**
- components/lif/lif_logging/**
- components/lif/auth/**
- projects/lif_advisor_api/**
jobs:
lif-advisor-api:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
env:
WORKING_DIR: ./projects/lif_advisor_api
ECR_REPOSITORY: lif/dev/lif_advisor_api
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build the project
shell: bash
working-directory: ${{ env.WORKING_DIR }}
run: |
curl -LsSf https://astral.sh/uv/0.7.15/install.sh | sh
./build.sh
- name: Build and push docker image
uses: ./.github/actions/build-and-push
with:
working-dir: ${{ env.WORKING_DIR }}
github-actions-role: ${{ env.GHA_ROLE }}
role-session-name: advisor-api-build
aws-region: ${{ env.AWS_REGION }}
ecr-repository: ${{ env.ECR_REPOSITORY }}
- name: Update the lif-advisor-api ECS Service
uses: ./.github/actions/update-cluster
with:
github-actions-role: ${{ env.GHA_ROLE }}
role-session-name: advisor-api-ecs
aws-region: ${{ env.AWS_REGION }}
ecs-cluster: ${{ env.ECS_CLUSTER }}
ecs-service: ${{ env.ECS_SERVICE }}