Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync main with development branch #21

Open
wants to merge 165 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
2e88b90
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
de2c35c
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
e15eb15
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
ad41007
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
c192eeb
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
352bcfc
Add or update the Azure App Service build and deployment workflow config
devopsdale May 1, 2024
ba91bee
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
bfd6e2b
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
6669aed
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
750430e
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
b8be0f4
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
5fe974e
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
464ac05
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
230f577
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
f19a183
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
a663b6f
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
8a0f576
Create docker-build-app.yml
devopsdale May 1, 2024
36de9c3
Update docker-build-app.yml
devopsdale May 1, 2024
f9a14b2
Update docker-build-app.yml
devopsdale May 1, 2024
f22529d
Update docker-build-app.yml
devopsdale May 1, 2024
9f147db
Update docker-build-app.yml
devopsdale May 1, 2024
20b3305
Update docker-build-app.yml
devopsdale May 1, 2024
85a0ea0
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
5bc3b4e
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
eccd8b5
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
688c1ad
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
688a9ed
Update development_web-rlbjfs6vicfds.yml
devopsdale May 1, 2024
b785e13
Create deploy-azure.yml
devopsdale May 1, 2024
27a5588
Rename deploy-azure.yml to deploy-azure.yaml
devopsdale May 1, 2024
fd2a6ca
Update docker-build-app.yml
devopsdale May 1, 2024
a5ccaa4
Update docker-build-app.yml
devopsdale May 1, 2024
cc78923
Update docker-build-app.yml
devopsdale May 1, 2024
6f56928
Update Frontend.Dockerfile
devopsdale May 2, 2024
02e0e31
Update Frontend.Dockerfile
devopsdale May 2, 2024
dd095c9
Update Frontend.Dockerfile
devopsdale May 2, 2024
041ac9c
Update Frontend.Dockerfile
devopsdale May 2, 2024
1d62cd0
Update docker-build-app.yml
devopsdale May 2, 2024
0b3e3f3
Update deploy-azure.yaml
devopsdale May 2, 2024
fab514c
Update deploy-azure.yaml
devopsdale May 2, 2024
90f9f06
Update deploy-azure.yaml
devopsdale May 2, 2024
272e787
Update deploy_front_end.yml
devopsdale May 2, 2024
c3c05be
Update deploy-azure.yaml
devopsdale May 2, 2024
1adfbec
Update development_web-rlbjfs6vicfds.yml
devopsdale May 2, 2024
ee0c67c
Update docker-build-app.yml
devopsdale May 2, 2024
d37f010
Rename deploy-azure.yaml to deploy-azure.yml
devopsdale May 2, 2024
7e99177
Update deploy-azure.yml
devopsdale May 2, 2024
aadd4ce
Update development_web-rlbjfs6vicfds.yml
devopsdale May 2, 2024
62b2d3d
Update development_web-rlbjfs6vicfds.yml
devopsdale May 2, 2024
42e7366
Update development_web-rlbjfs6vicfds.yml
devopsdale May 2, 2024
d9eef06
Update development_web-rlbjfs6vicfds.yml
devopsdale May 2, 2024
33e0fbf
Update docker-build-app.yml
devopsdale May 2, 2024
fd6f8ce
Update docker-build-app.yml
devopsdale May 2, 2024
c8d4ef8
Update docker-build-app.yml
devopsdale May 2, 2024
5fe8e76
Update docker-build-app.yml
devopsdale May 2, 2024
07fe5f8
Update docker-build-app.yml
devopsdale May 2, 2024
a595350
Update docker-build-app.yml
devopsdale May 2, 2024
99ff9d3
Update docker-build-app.yml
devopsdale May 2, 2024
b4d16ce
Update docker-build-app.yml
devopsdale May 2, 2024
14295f1
Update build-docker-admin.yml
devopsdale May 2, 2024
b985d92
Update build-docker-backend.yml
devopsdale May 2, 2024
de3f141
Update build-docker-frontend.yml
devopsdale May 2, 2024
308e454
Update docker-build-app.yml
devopsdale May 2, 2024
98f1923
Update docker-build-app.yml
devopsdale May 2, 2024
4c87170
Update docker-build-app.yml
devopsdale May 2, 2024
cbbcff1
Update docker-build-app.yml
devopsdale May 2, 2024
30d983e
Update docker-build-app.yml
devopsdale May 2, 2024
e17c07b
playing around with a lil drift animation on bg
bl3d May 5, 2024
4aaa36a
getting base OnboardingModule component started - WIP
bl3d May 6, 2024
27d9128
load WIP modal on user fist view setting localstorage firstVisit
bl3d May 6, 2024
39a7754
styling OnboradingModule container - WIP
bl3d May 6, 2024
c78957c
Update Frontend.Dockerfile
devopsdale May 6, 2024
99d6a54
Update docker-build-app.yml
devopsdale May 6, 2024
24308df
Update Frontend.Dockerfile
devopsdale May 6, 2024
73fd405
Update docker-build-app.yml
devopsdale May 6, 2024
2dc6676
Update docker-build-app.yml
devopsdale May 6, 2024
5c17761
Update Frontend.Dockerfile
devopsdale May 6, 2024
18ac79b
Update Frontend.Dockerfile
devopsdale May 6, 2024
726f61e
Create docker-build-backend.yml
devopsdale May 6, 2024
af2ec2f
Create build-admin-app.yml
devopsdale May 7, 2024
25b97b3
Add or update the Azure App Service build and deployment workflow config
devopsdale May 7, 2024
2b73c3a
Update development_web-rlbjfs6vicfds-admin.yml
devopsdale May 7, 2024
ea919cb
Update deploy_front_end.yml
devopsdale May 7, 2024
2bdbc74
Add new build
eduardogch May 7, 2024
b14509b
Sync changes frontend
eduardogch May 7, 2024
b661509
Merge pull request #17 from devopsdale/build-prod-dev-v2
devopsdale May 7, 2024
36d92f8
Update Frontend.Dockerfile
devopsdale May 7, 2024
55e604e
Update docker-build-app.yml
devopsdale May 7, 2024
ab9144f
Update docker-build-app.yml
devopsdale May 7, 2024
dbe7a64
Update docker-build-app.yml
devopsdale May 7, 2024
9c2e9ab
Update Frontend.Dockerfile
devopsdale May 7, 2024
941f2cf
Update Frontend.Dockerfile
devopsdale May 7, 2024
244aea8
Update .env.development
devopsdale May 7, 2024
bc62309
Update docker-build-app.yml
devopsdale May 7, 2024
77952eb
Update docker-build-app.yml
devopsdale May 7, 2024
14480c3
Update docker-build-app.yml
devopsdale May 7, 2024
d9fcf41
More work on side bar for threads
eduardogch May 8, 2024
50e71ce
Update docker-build-app.yml
devopsdale May 8, 2024
90a275e
Update docker-build-app.yml
devopsdale May 8, 2024
2db85b9
Update docker-build-app.yml
devopsdale May 8, 2024
cd60423
Update docker-build-app.yml
devopsdale May 8, 2024
03aa818
more changes
eduardogch May 8, 2024
2287458
Add remove thread feature
eduardogch May 8, 2024
d531cd2
Update deploy_front_end.yml
devopsdale May 9, 2024
4c1322a
Update deploy_front_end.yml
devopsdale May 9, 2024
2de241e
Update and rename deploy_front_end.yml to dev_deploy_front_end.yml
devopsdale May 9, 2024
2c3e68f
Create prod_deploy_front_end.yml
devopsdale May 9, 2024
70b4933
Update dev_deploy_front_end.yml
devopsdale May 9, 2024
a1b6bf2
Update and rename build-admin-app.yml to dev_build_admin_app.yml
devopsdale May 9, 2024
17ec113
Update prod_deploy_front_end.yml
devopsdale May 9, 2024
9dec0a5
Update and rename docker-build-app.yml to dev_docker_build_app.yml
devopsdale May 9, 2024
62b2241
Update development_web-rlbjfs6vicfds-admin.yml
devopsdale May 9, 2024
ec65a50
Delete .github/workflows/dev_build_admin_app.yml
devopsdale May 9, 2024
20a6556
Update development_web-rlbjfs6vicfds-admin.yml
devopsdale May 9, 2024
9561575
Update dev_docker_build_app.yml
devopsdale May 9, 2024
e290dc9
Update dev_docker_build_app.yml
devopsdale May 9, 2024
9b5f2dd
Create prod_docker_build_app.yml
devopsdale May 9, 2024
009840a
Add or update the Azure App Service build and deployment workflow config
devopsdale May 9, 2024
567b56e
Update and rename development_web-rlbjfs6vicfds-admin.yml to dev_depl…
devopsdale May 9, 2024
896f9bb
Update and rename development_web-5cmvhl67t5ruq-admin.yml to prod_dep…
devopsdale May 9, 2024
dfca4b6
Update .env.development
devopsdale May 9, 2024
4ccfe41
Make stuff work
eduardogch May 9, 2024
360a982
more fixes
eduardogch May 9, 2024
68664f9
Fix clear chat
eduardogch May 9, 2024
786c543
setting up Onboarding modal for slide content - WIP
bl3d May 10, 2024
7b179f4
add delete modal and fix share link
eduardogch May 10, 2024
a34eecf
slider styling, motion, functionality first pass
bl3d May 10, 2024
75004a7
CTAs in place per slide and styled, working functionality
bl3d May 11, 2024
fe58eb1
Make thread great again with header
eduardogch May 13, 2024
f2c1693
tweaks
eduardogch May 13, 2024
4e65f0e
More tweaks
eduardogch May 13, 2024
a0f4d34
Quick fix on delete thread
eduardogch May 14, 2024
714be06
Merge pull request #20 from devopsdale/threads-v2
bl3d May 14, 2024
6cb27ac
pausing to pull in Dev
bl3d May 14, 2024
4d95b10
testing merge fixes
bl3d May 14, 2024
6230771
merge issue fixed
bl3d May 14, 2024
77fcc35
Add or update the Azure App Service build and deployment workflow config
devopsdale May 20, 2024
e728ef1
Update dev_docker_build_app.yml
devopsdale May 21, 2024
68c74f0
Update dev_docker_build_app.yml
devopsdale May 22, 2024
32bdfc2
Update Frontend.Dockerfile
devopsdale May 22, 2024
674ddcc
Update dev_docker_build_app.yml
devopsdale May 22, 2024
270257b
Update dev_docker_build_app.yml
devopsdale May 22, 2024
7f0a105
Fix types
eduardogch May 22, 2024
bf8e8a6
Merge pull request #22 from devopsdale/fix-build-errors
devopsdale May 22, 2024
56f6c15
Update dev_docker_build_app.yml
devopsdale May 22, 2024
04ef0d5
Update dev_docker_build_app.yml
devopsdale May 22, 2024
35bd9ba
Update dev_docker_build_app.yml
devopsdale May 22, 2024
57df6cc
Add or update the Azure App Service build and deployment workflow config
devopsdale May 22, 2024
b5fe9c1
Update dev_docker_build_app.yml
devopsdale May 22, 2024
76cd331
Update dev_docker_build_app.yml
devopsdale May 22, 2024
0f2d196
Add or update the Azure App Service build and deployment workflow config
devopsdale May 22, 2024
c8fb040
Add or update the Azure App Service build and deployment workflow config
devopsdale May 22, 2024
8e1ccfe
Update prod_deploy_admin.yml
devopsdale May 22, 2024
8ba3be5
Update prod_deploy_admin.yml
devopsdale May 22, 2024
d745e0e
Update prod_deploy_admin.yml
devopsdale May 22, 2024
103792b
Update dev_deploy_admin.yml
devopsdale May 22, 2024
959445e
Update dev_deploy_admin.yml
devopsdale May 22, 2024
9d82c02
Update prod_deploy_admin.yml
devopsdale May 22, 2024
0d5537d
Update dev_deploy_admin.yml
devopsdale May 22, 2024
b70004e
Update dev_deploy_admin.yml
devopsdale May 22, 2024
ff83e75
pulling dev in
bl3d May 31, 2024
8c9bb98
updating inject data link
bl3d May 31, 2024
73ed9fb
disable getStartedLinks for now
bl3d May 31, 2024
5ab44a8
Merge pull request #23 from devopsdale/onboardingUI01
bl3d May 31, 2024
062355d
Fix linter on Sidebar
eduardogch May 31, 2024
af07151
Merge pull request #24 from devopsdale/linter-fix
bl3d May 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-admin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Admin Web App Docker Image
name: og - Admin Web App Docker Image

on:
workflow_run:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-backend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Backend Docker Image
name: og - Backend Docker Image

on:
workflow_run:
Expand Down Expand Up @@ -27,4 +27,4 @@ jobs:
docker build . --file docker/Backend.Dockerfile --cache-from fruoccopublic.azurecr.io/rag-backend:latest --tag fruoccopublic.azurecr.io/rag-backend:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker tag fruoccopublic.azurecr.io/rag-backend:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER fruoccopublic.azurecr.io/rag-backend:latest;
docker push fruoccopublic.azurecr.io/rag-backend:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker push fruoccopublic.azurecr.io/rag-backend:latest;
docker push fruoccopublic.azurecr.io/rag-backend:latest;
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-frontend.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: WebApp Docker Image
name: og - WebApp Docker Image

on:
workflow_run:
Expand Down Expand Up @@ -27,4 +27,4 @@ jobs:
docker build . --file docker/Frontend.Dockerfile --cache-from fruoccopublic.azurecr.io/rag-webapp:latest --tag fruoccopublic.azurecr.io/rag-webapp:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker tag fruoccopublic.azurecr.io/rag-webapp:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER fruoccopublic.azurecr.io/rag-webapp:latest;
docker push fruoccopublic.azurecr.io/rag-webapp:$(date +'%Y-%m-%d')_$GITHUB_RUN_NUMBER;
docker push fruoccopublic.azurecr.io/rag-webapp:latest;
docker push fruoccopublic.azurecr.io/rag-webapp:latest;
69 changes: 69 additions & 0 deletions .github/workflows/deploy-azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: deploy using azd
on:
workflow_dispatch:
push:
# Run when commits are pushed to mainline branch (main or master)
# Set this to the mainline branch you are using
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
env:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install azd
uses: Azure/setup-azd@v0.1.0

- name: Log in with Azure (Federated Credentials)
if: ${{ env.AZURE_CLIENT_ID != '' }}
run: |
azd auth login `
--client-id "$Env:AZURE_CLIENT_ID" `
--federated-credential-provider "github" `
--tenant-id "$Env:AZURE_TENANT_ID"
shell: pwsh

- name: Log in with Azure (Client Credentials)
if: ${{ env.AZURE_CREDENTIALS != '' }}
run: |
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
Write-Host "::add-mask::$($info.clientSecret)"

azd auth login `
--client-id "$($info.clientId)" `
--client-secret "$($info.clientSecret)" `
--tenant-id "$($info.tenantId)"
shell: pwsh
env:
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}

# - name: Azd Init
# run: azd init -t chat-with-your-data-solution-accelerator@1.7.0
# env:
# AZURE_ENV_NAME: rg-rsta4xey-temp
# AZURE_LOCATION: East US
# AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Provision Infrastructure
run: azd provision --no-prompt --preview
env:
AZURE_ENV_NAME: rg-rsta4xey-temp
AZURE_LOCATION: East US
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}


- name: Deploy Application
run: azd deploy --no-prompt --preview
env:
AZURE_ENV_NAME: rg-rsta4xey-temp
AZURE_LOCATION: East US
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
39 changes: 39 additions & 0 deletions .github/workflows/dev_deploy_admin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: DEV - admin - build container and release
on:
push:
branches:
- development
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master
- uses: azure/docker-login@v1
with:
login-server: prontocontainers.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build . -t prontocontainers.azurecr.io/pronto-admin -f ./docker/Admin.Dockerfile
docker push prontocontainers.azurecr.io/pronto-admin

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F85D40AB85B047FEB5ED3378D7CB5108 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_A204C83B469A46BCB930BEFE434FE4C1 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_484B46252DAB4347A4D95C41EFF9683C }}
- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
with:
app-name: 'web-dsfb352ephiyu-admin'
images: prontocontainers.azurecr.io/pronto-admin

37 changes: 37 additions & 0 deletions .github/workflows/dev_deploy_front_end.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: DEV - FE Deploy to storage
on:
push:
branches: development
workflow_dispatch:

jobs:
deploy_dev:
runs-on: ubuntu-latest
environment:
name: dev
url: https://aasdoprontodev.z13.web.core.windows.net/
steps:
- uses: actions/checkout@v3
- uses: azure/login@v1
with:
creds: ${{ secrets.DEV_AZURE_CREDENTIALS }}

- name: npm install, build, and test
working-directory: ./code/frontend
run: |
npm install
npm run build --if-present
npm run test --if-present


- name: Upload to blob storage
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch --account-name aasdoprontodev -d '$web' -s ./code/frontend/build --overwrite

# Azure logout
- name: logout
run: |
az logout
if: always()
86 changes: 86 additions & 0 deletions .github/workflows/dev_docker_build_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: DEV - build and release api

on:
push:
branches:
- development
workflow_dispatch:

jobs:

deploy-to-dev:
runs-on: ubuntu-latest
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master

- uses: azure/docker-login@v1
with:
login-server: prontocontainers.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}


- run: |
docker build . -t prontocontainers.azurecr.io/pronto-fontend -f ./docker/Frontend.Dockerfile
docker push prontocontainers.azurecr.io/pronto-fontend

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_1EC8C71974184A14A7AFB91F4676FE53 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_C68709E83D0B4B41815059C3FCED7A93 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_991984B989F44817B0925FB42F086658 }}

- uses: azure/webapps-deploy@v2
with:
app-name: 'web-dsfb352ephiyu'
images: prontocontainers.azurecr.io/pronto-fontend

deploy-to-prod:
runs-on: ubuntu-latest
#if: github.ref == 'refs/heads/main'
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master

- uses: azure/docker-login@v1
with:
login-server: prontocontainers.azurecr.io
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}


- run: |
docker build . -t prontocontainers.azurecr.io/pronto-fontend -f ./docker/Frontend.Dockerfile
docker push prontocontainers.azurecr.io/pronto-fontend

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_40F8872A222540F4A90B1A3C4BDD09F6 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_B64A0DAF04094E0EBC57C3F69091FD99 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_DE9C0EC07B6947CBA9333317F147DAA5 }}

- uses: azure/webapps-deploy@v2
with:
app-name: 'web-6fzbc32vpqwni'
images: prontocontainers.azurecr.io/pronto-fontend
78 changes: 78 additions & 0 deletions .github/workflows/development_web-6fzbc32vpqwni-admin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions
# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions

name: Build and deploy Python app to Azure Web App - web-6fzbc32vpqwni-admin

on:
push:
branches:
- development
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python version
uses: actions/setup-python@v1
with:
python-version: '3.11'

- name: Create and start virtual environment
run: |
python -m venv venv
source venv/bin/activate

- name: Install dependencies
run: pip install -r requirements.txt

# Optional: Add step to run tests here (PyTest, Django test suites, etc.)

- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment jobs
uses: actions/upload-artifact@v3
with:
name: python-app
path: |
release.zip
!venv/

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: python-app

- name: Unzip artifact for deployment
run: unzip release.zip


- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_73A3FE74C38349A5BB52C79AFAC5BF96 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_6F3AF3E2BF5949E79CC51223797DA85A }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_E61CF904F8FF4E4FA283B10496C7B811 }}

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'web-6fzbc32vpqwni-admin'
slot-name: 'Production'

Loading
Loading