Files
socaichat/.github/workflows/deploy-langgraph-ui.yml
gongzhiyongandClaude Sonnet 4.6 3ef9624385
Deploy LangGraph Server to Azure Container App / build-and-deploy (push) Failing after 27s
Deploy LangGraph UI to Azure Static Web Apps / build-and-deploy (push) Failing after 37s
chore: migrate backend from Azure Web App to Container App
- Replace soc-langgraph Web App with Azure Container App (soc-cae environment)
- New URL: soc-langgraph.victorioussand-69befc84.southeastasia.azurecontainerapps.io
- Update deploy-langgraph.yml: Web App restart -> az containerapp update --image
- Update deploy-langgraph-ui.yml: VITE_LANGGRAPH_URL to Container App URL
- Container App: min 1 replica, max 3, CPU 1.0, Memory 2Gi, port 8080
- Update CLAUDE.md architecture and deployment docs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 22:58:44 +08:00

45 lines
1.2 KiB
YAML

name: Deploy LangGraph UI to Azure Static Web Apps
on:
push:
branches: [main]
paths:
- "langgraph/**"
- ".github/workflows/deploy-langgraph-ui.yml"
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
run: corepack enable && corepack prepare pnpm@10 --activate
- name: Install dependencies
working-directory: langgraph
run: pnpm install --frozen-lockfile
- name: Build Vite frontend
working-directory: langgraph
env:
VITE_LANGGRAPH_URL: https://soc-langgraph.victorioussand-69befc84.southeastasia.azurecontainerapps.io
run: pnpm vite build
- name: Deploy to Azure Static Web Apps
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.SWA_LANGGRAPH_TOKEN }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
action: upload
app_location: langgraph/dist
skip_app_build: true