Commit 9307c6d 1 parent 7b8252c commit 9307c6d Copy full SHA for 9307c6d
File tree 4 files changed +24
-60
lines changed
4 files changed +24
-60
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
pull_request :
5
6
push :
6
7
branches :
@@ -13,6 +14,11 @@ permissions:
13
14
jobs :
14
15
build :
15
16
runs-on : ubuntu-latest
17
+ env :
18
+ AZURE_CLIENT_ID : ${{ secrets.AZURE_CLIENT_ID }}
19
+ AZURE_TENANT_ID : ${{ secrets.AZURE_TENANT_ID }}
20
+ AZURE_SUBSCRIPTION_ID : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
21
+ AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
16
22
17
23
steps :
18
24
- name : Checkout code
27
33
28
34
- name : Pre-build image and run make in dev container
29
35
uses :
devcontainers/[email protected]
36
+ env :
37
+ AZURE_ENV_NAME : ${{ vars.AZURE_ENV_NAME }}
38
+ AZURE_LOCATION : ${{ vars.AZURE_LOCATION }}
30
39
with :
31
40
imageName : ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
32
41
cacheFrom : ghcr.io/azure-samples/chat-with-your-data-solution-accelerator
33
- runCmd : make ci
42
+ runCmd : make ci && make deploy
34
43
refFilterForPush : refs/heads/main
44
+ env : |
45
+ AZURE_CLIENT_ID
46
+ AZURE_CLIENT_SECRET
47
+ AZURE_TENANT_ID
48
+ AZURE_SUBSCRIPTION_ID
49
+ AZURE_ENV_NAME
50
+ AZURE_LOCATION
Original file line number Diff line number Diff line change @@ -33,3 +33,10 @@ build-frontend: ## 🏗️ Build the Frontend webapp
33
33
azd-login : # # 🔑 Login to Azure with azd and a SPN
34
34
@echo -e " \e[34m$@ \e[0m" || true
35
35
@azd auth login --client-id ${AZURE_CLIENT_ID} --client-secret ${AZURE_CLIENT_SECRET} --tenant-id ${AZURE_TENANT_ID}
36
+
37
+ deploy : azd-login # # 🚀 Deploy everything to Azure
38
+ @echo -e " \e[34m$@ \e[0m" || true
39
+ @azd provision --no-prompt
40
+ @azd deploy web --no-prompt
41
+ @azd deploy function --no-prompt
42
+ @azd deploy adminweb --no-prompt
You can’t perform that action at this time.
0 commit comments