forked from microsoft/chat-copilot
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.5 KB
/
copilot-deploy-environment.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
name: copilot-deploy-environment
on:
workflow_call:
inputs:
ENVIRONMENT:
required: true
type: string
WEBAPI_ARTIFACT_NAME:
required: true
type: string
MEMORYPIPELINE_ARTIFACT_NAME:
required: true
type: string
PLUGINS_ARTIFACT_NAME:
required: true
type: string
outputs:
backend-host:
description: "Host on which backend runs"
value: ${{jobs.deploy-backend.outputs.backend-host}}
permissions:
contents: read
id-token: write
jobs:
deploy-infra:
uses: ./.github/workflows/copilot-deploy-infra.yml
with:
ENVIRONMENT: ${{inputs.ENVIRONMENT}}
deploy-backend:
needs: [deploy-infra]
uses: ./.github/workflows/copilot-deploy-backend.yml
with:
ARTIFACT_NAME: ${{inputs.WEBAPI_ARTIFACT_NAME}}
DEPLOYMENT_NAME: ${{needs.deploy-infra.outputs.deployment-id}}
ENVIRONMENT: ${{inputs.ENVIRONMENT}}
deploy-memorypipeline:
needs: [deploy-infra]
uses: ./.github/workflows/copilot-deploy-memorypipeline.yml
with:
ARTIFACT_NAME: ${{inputs.MEMORYPIPELINE_ARTIFACT_NAME}}
DEPLOYMENT_NAME: ${{needs.deploy-infra.outputs.deployment-id}}
ENVIRONMENT: ${{inputs.ENVIRONMENT}}
deploy-plugins:
needs: [deploy-infra]
uses: ./.github/workflows/copilot-deploy-plugins.yml
with:
ARTIFACT_NAME: ${{inputs.PLUGINS_ARTIFACT_NAME}}
DEPLOYMENT_NAME: ${{needs.deploy-infra.outputs.deployment-id}}
ENVIRONMENT: ${{inputs.ENVIRONMENT}}