generated from DefangSamples/sample-RAG-chatbot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.02 KB
/
deploy.yaml
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
name: Deploy
on:
push:
branches:
- main
jobs:
deploy-production:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
environment: production
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Configure AWS Credentials for CI
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: arn:aws:iam::488659951590:role/ci-role-d4fe904 # ciRoleArn from defang-io/infrastructure stack
- name: Configure AWS Credentials for Corp Website Account
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-chaining: true
role-duration-seconds: 1200
role-to-assume: arn:aws:iam::407839483216:role/admin
- name: Deploy
uses: DefangLabs/[email protected]
with:
config-env-vars: OPENAI_API_KEY
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}