File tree 4 files changed +50
-14
lines changed
4 files changed +50
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Image CI
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ branch :
7
+ description : ' The branch to build'
8
+ required : true
9
+
10
+ jobs :
11
+
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - name : Azure Container Registry Login
18
+ uses : Azure/docker-login@v1
19
+ with :
20
+ # Container registry username
21
+ username : ${{ secrets.ACR_USERNAME }}
22
+ # Container registry password
23
+ password : ${{ secrets.ACR_PASSWORD }}
24
+ # Container registry server url
25
+ login-server : ${{ secrets.ACR_LOGIN_SERVER }}
26
+
27
+ - uses : actions/checkout@v3
28
+ with :
29
+ ref : ${{ github.event.inputs.branch }}
30
+ - name : Build the Docker image
31
+ run :
32
+ docker build . --file WebApp.Dockerfile --tag fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
33
+ docker tag fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:latest;
34
+ docker push fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
35
+ docker push fruoccopublic.azurecr.io/sample-app-aoai-chatgpt:latest;
36
+
Original file line number Diff line number Diff line change 2
2
# More GitHub Actions for Azure: https://github.com/Azure/actions
3
3
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions
4
4
5
- name : Build and deploy Python app to Azure Web App - ngcodex
5
+ name : Build and deploy Python app to Azure Web App - codeurzebs-chatgpt
6
6
7
7
on :
8
8
push :
49
49
environment :
50
50
name : ' Production'
51
51
url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
52
- permissions :
53
- id-token : write # This is required for requesting the JWT
52
+ permissions :
53
+ id-token : write # This is required for requesting the JWT
54
54
55
55
steps :
56
56
- name : Download artifact from build job
@@ -61,18 +61,18 @@ jobs:
61
61
- name : Unzip artifact for deployment
62
62
run : unzip release.zip
63
63
64
-
65
- - name : Login to Azure
66
- uses : azure/login@v1
67
- with :
68
- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_3378C322D4024C48985609FD9E9DDE2F }}
69
- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_77B64334BED546FE87D388D50EEF49AA }}
70
- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_DBA0530B37D1486A9B978C842056B10A }}
64
+
65
+ - name : Login to Azure
66
+ uses : azure/login@v1
67
+ with :
68
+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_7D24E0AF7863497FB0D2CE966CF4C40B }}
69
+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_FFF91247B01348C9A3D5D9B1F93F84D9 }}
70
+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_487EA3E34C114A2BBD255EA78A5504F3 }}
71
71
72
72
- name : ' Deploy to Azure Web App'
73
73
uses : azure/webapps-deploy@v2
74
74
id : deploy-to-webapp
75
75
with :
76
- app-name : ' ngcodex-gpt '
76
+ app-name : ' codeurzebs-chatgpt '
77
77
slot-name : ' Production'
78
-
78
+
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ tiktoken==0.6.0
7
7
langchain == 0.0.340
8
8
bs4 == 0.0.1
9
9
urllib3 == 2.0.6
10
- pytest == 7.4.0
10
+ pytest == 8.1.1
11
11
azure-storage-blob
12
12
chardet
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ azure-identity==1.14.0
2
2
Flask == 2.3.2
3
3
openai == 0.27.7
4
4
azure-search-documents == 11.4.0b6
5
- azure-storage-blob == 12.17.0
5
+ azure-storage-blob == 12.19.1
6
6
python-dotenv == 1.0.0
7
7
azure-cosmos == 4.5.0
You can’t perform that action at this time.
0 commit comments