forked from microsoft/chat-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.84 KB
/
copilot-deploy-pipeline.yml
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
name: copilot-deploy-pipeline
on:
workflow_dispatch:
push:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
jobs:
build-webapi:
uses: ./.github/workflows/copilot-build-backend.yml
build-memorypipeline:
uses: ./.github/workflows/copilot-build-memorypipeline.yml
build-plugins:
uses: ./.github/workflows/copilot-build-plugins.yml
int:
needs: [build-webapi, build-memorypipeline, build-plugins]
uses: ./.github/workflows/copilot-deploy-environment.yml
with:
ENVIRONMENT: int
WEBAPI_ARTIFACT_NAME: ${{needs.build-webapi.outputs.artifact}}
MEMORYPIPELINE_ARTIFACT_NAME: ${{needs.build-memorypipeline.outputs.artifact}}
PLUGINS_ARTIFACT_NAME: ${{needs.build-plugins.outputs.artifact}}
secrets:
AZURE_CLIENT_ID: ${{secrets.AZURE_CLIENT_ID}}
AZURE_TENANT_ID: ${{secrets.AZURE_TENANT_ID}}
AZURE_SUBSCRIPTION_ID: ${{secrets.AZURE_SUBSCRIPTION_ID}}
AZURE_OPENAI_ENDPOINT: ${{secrets.AZURE_OPENAI_ENDPOINT}}
int-tests:
uses: ./.github/workflows/copilot-run-integration-tests.yml
needs: int
with:
ENVIRONMENT: int
BACKEND_HOST: ${{needs.int.outputs.backend-host}}
stable:
needs: int-tests
uses: ./.github/workflows/copilot-deploy-environment.yml
with:
ENVIRONMENT: stable
WEBAPI_ARTIFACT_NAME: ${{needs.build-webapi.outputs.artifact}}
MEMORYPIPELINE_ARTIFACT_NAME: ${{needs.build-memorypipeline.outputs.artifact}}
PLUGINS_ARTIFACT_NAME: ${{needs.build-plugins.outputs.artifact}}
secrets:
AZURE_CLIENT_ID: ${{secrets.AZURE_CLIENT_ID}}
AZURE_TENANT_ID: ${{secrets.AZURE_TENANT_ID}}
AZURE_SUBSCRIPTION_ID: ${{secrets.AZURE_SUBSCRIPTION_ID}}
AZURE_OPENAI_ENDPOINT: ${{secrets.AZURE_OPENAI_ENDPOINT}}