Skip to content

Commit b6587e4

Browse files
authored
Merge branch 'master' into dependabot/pip/tiktoken-0.6.0
2 parents 39fd7f8 + aa13f0f commit b6587e4

File tree

4 files changed

+50
-14
lines changed

4 files changed

+50
-14
lines changed

Diff for: .github/workflows/docker-image.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+

Diff for: .github/workflows/master_ngcodex-gpt.yml renamed to .github/workflows/master_codeurzebs-chatgpt.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# More GitHub Actions for Azure: https://github.com/Azure/actions
33
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions
44

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
66

77
on:
88
push:
@@ -49,8 +49,8 @@ jobs:
4949
environment:
5050
name: 'Production'
5151
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
5454

5555
steps:
5656
- name: Download artifact from build job
@@ -61,18 +61,18 @@ jobs:
6161
- name: Unzip artifact for deployment
6262
run: unzip release.zip
6363

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 }}
7171

7272
- name: 'Deploy to Azure Web App'
7373
uses: azure/webapps-deploy@v2
7474
id: deploy-to-webapp
7575
with:
76-
app-name: 'ngcodex-gpt'
76+
app-name: 'codeurzebs-chatgpt'
7777
slot-name: 'Production'
78-
78+

Diff for: requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ tiktoken==0.6.0
77
langchain==0.0.340
88
bs4==0.0.1
99
urllib3==2.0.6
10-
pytest==7.4.0
10+
pytest==8.1.1
1111
azure-storage-blob
1212
chardet

Diff for: requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ azure-identity==1.14.0
22
Flask==2.3.2
33
openai==0.27.7
44
azure-search-documents==11.4.0b6
5-
azure-storage-blob==12.17.0
5+
azure-storage-blob==12.19.1
66
python-dotenv==1.0.0
77
azure-cosmos==4.5.0

0 commit comments

Comments
 (0)