-
Notifications
You must be signed in to change notification settings - Fork 507
64 lines (54 loc) · 1.71 KB
/
api-deploy-production-ecs.yml
File metadata and controls
64 lines (54 loc) · 1.71 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
64
name: API Deploy to Production ECS
on:
push:
tags:
- '*'
paths:
- api/**
- .github/**
- infrastructure/aws/production/**
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy-ecs:
uses: ./.github/workflows/.reusable-deploy-ecs.yml
with:
environment: production
secrets: inherit
mcp-schema-push:
needs: deploy-ecs
name: Push MCP Schema to Gram
runs-on: depot-ubuntu-latest
defaults:
run:
working-directory: api
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: make install-poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: poetry
- name: Install dependencies
run: |
echo "https://${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}:@github.com" > ${HOME}/.git-credentials
git config --global credential.helper store
make install-packages opts="--with saml,auth-controller,workflows,release-pipelines"
make install-private-modules
rm -rf ${HOME}/.git-credentials
- name: Generate MCP schema
env:
FLAGSMITH_API_URL: 'https://api.flagsmith.com'
FLAGSMITH_FRONTEND_URL: 'https://app.flagsmith.com'
run: make generate-mcp-spec
- name: Install Gram CLI
run: curl -fsSL https://go.getgram.ai/cli.sh | bash
- name: Push to Gram
env:
GRAM_API_KEY: ${{ secrets.GRAM_API_KEY }}
GRAM_ORG: ${{ vars.GRAM_ORG }}
GRAM_PROJECT: ${{ vars.GRAM_PROJECT }}
run: gram push --api-key "$GRAM_API_KEY" --org "$GRAM_ORG" --project "$GRAM_PROJECT" --config gram.json