-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (51 loc) · 1.67 KB
/
deploy-langgraph.yml
File metadata and controls
63 lines (51 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy LangGraph
on:
push:
branches: [main]
paths:
- 'cockpit/langgraph/**/python/**'
- 'cockpit/deep-agents/**/python/**'
- 'examples/chat/python/**'
- 'apps/cockpit/scripts/capability-registry.ts'
- 'scripts/generate-shared-deployment-config.ts'
- 'deployments/shared-dev/langgraph.json'
workflow_dispatch:
inputs:
capability:
description: 'Deprecated and ignored by the shared deployment flow'
required: false
type: string
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
jobs:
deploy:
name: Deploy shared cockpit-dev to LangGraph Cloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- uses: actions/setup-node@v6.3.0
with:
node-version: 22
cache: npm
- run: npm ci
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
run: pip install uv
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Generate shared deployment manifest
run: npx tsx scripts/generate-shared-deployment-config.ts
- name: Write .env for shared deployment
run: |
mkdir -p deployments/shared-dev
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > deployments/shared-dev/.env
- name: Deploy cockpit-dev
working-directory: deployments/shared-dev
run: uv run --with langgraph-cli langgraph deploy --config langgraph.json --name cockpit-dev --no-wait
env:
LANGSMITH_API_KEY: ${{ secrets.LANGSMITH_API_KEY }}