From 56ea0c4023d443b8da6ea1e990dab20879629a85 Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Fri, 20 May 2022 12:09:28 +1000 Subject: [PATCH 01/10] Add or update the Azure App Service build and deployment workflow config --- .../workflows/master_azurehealthmonitor.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_azurehealthmonitor.yml diff --git a/.github/workflows/master_azurehealthmonitor.yml b/.github/workflows/master_azurehealthmonitor.yml new file mode 100644 index 000000000..46ebbf8fe --- /dev/null +++ b/.github/workflows/master_azurehealthmonitor.yml @@ -0,0 +1,63 @@ +# 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 - azurehealthmonitor + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.9' + + - 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: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: python-app + path: | + . + !venv/ + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: python-app + path: . + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'azurehealthmonitor' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_C2C85C7045774BBFB976EBDE88A5AAE0 }} From 557e0b6bb116bde8a6cee6e52c1447ae03d27f1c Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Fri, 20 May 2022 12:15:55 +1000 Subject: [PATCH 02/10] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7f8a1f2e8..2ac90c45f 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World!" + return "Health Monitoring System" From 065f645df51b3ad8c254d40f594399034011ce24 Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Fri, 20 May 2022 12:46:47 +1000 Subject: [PATCH 03/10] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_azurehealthmonitor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master_azurehealthmonitor.yml b/.github/workflows/master_azurehealthmonitor.yml index 46ebbf8fe..2b911ff01 100644 --- a/.github/workflows/master_azurehealthmonitor.yml +++ b/.github/workflows/master_azurehealthmonitor.yml @@ -2,7 +2,7 @@ # 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 - azurehealthmonitor +name: Build and deploy Python app to Azure Web App - Azurehealthmonitor on: push: @@ -58,6 +58,6 @@ jobs: uses: azure/webapps-deploy@v2 id: deploy-to-webapp with: - app-name: 'azurehealthmonitor' + app-name: 'Azurehealthmonitor' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_C2C85C7045774BBFB976EBDE88A5AAE0 }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_DB9F9BFF7ECD4425BF57F206A5679A99 }} From 879c1881ce5cf2fd6ffe9a2caf752afaa09003b7 Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Fri, 20 May 2022 18:19:44 +1000 Subject: [PATCH 04/10] Add or update the Azure App Service build and deployment workflow config --- .../workflows/master_ahealthmonitoring.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_ahealthmonitoring.yml diff --git a/.github/workflows/master_ahealthmonitoring.yml b/.github/workflows/master_ahealthmonitoring.yml new file mode 100644 index 000000000..a2335a60d --- /dev/null +++ b/.github/workflows/master_ahealthmonitoring.yml @@ -0,0 +1,63 @@ +# 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 - AHealthmonitoring + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.9' + + - 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: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: python-app + path: | + . + !venv/ + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: python-app + path: . + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'AHealthmonitoring' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F2DDEBCD2483484ABF09107CB72E87B2 }} From 95898745e8ee8e123324f8cf3c24fb3a1888ecf8 Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Fri, 20 May 2022 18:23:33 +1000 Subject: [PATCH 05/10] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_ahealthmonitoring.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master_ahealthmonitoring.yml b/.github/workflows/master_ahealthmonitoring.yml index a2335a60d..c5dcaef70 100644 --- a/.github/workflows/master_ahealthmonitoring.yml +++ b/.github/workflows/master_ahealthmonitoring.yml @@ -60,4 +60,4 @@ jobs: with: app-name: 'AHealthmonitoring' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F2DDEBCD2483484ABF09107CB72E87B2 }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FEC7D89C30B04929AB34E3E648FD84CD }} From 02d9f8e41f5625dac7852c4fa3a3136663904570 Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Mon, 23 May 2022 00:56:42 +1000 Subject: [PATCH 06/10] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_ahealthmonitor.yml | 63 +++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_ahealthmonitor.yml diff --git a/.github/workflows/master_ahealthmonitor.yml b/.github/workflows/master_ahealthmonitor.yml new file mode 100644 index 000000000..a5854b13c --- /dev/null +++ b/.github/workflows/master_ahealthmonitor.yml @@ -0,0 +1,63 @@ +# 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 - AHealthmonitor + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python version + uses: actions/setup-python@v1 + with: + python-version: '3.7' + + - 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: Upload artifact for deployment jobs + uses: actions/upload-artifact@v2 + with: + name: python-app + path: | + . + !venv/ + + deploy: + runs-on: ubuntu-latest + needs: build + environment: + name: 'Production' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v2 + with: + name: python-app + path: . + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'AHealthmonitor' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_34376C731E4841FF915FC07F25FC9AAB }} From d021b53c7fed2f4f89d3307dcf4e8d612d8e364d Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Mon, 23 May 2022 16:46:41 +1000 Subject: [PATCH 07/10] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_ahealthmonitor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master_ahealthmonitor.yml b/.github/workflows/master_ahealthmonitor.yml index a5854b13c..bd7f15657 100644 --- a/.github/workflows/master_ahealthmonitor.yml +++ b/.github/workflows/master_ahealthmonitor.yml @@ -20,7 +20,7 @@ jobs: - name: Set up Python version uses: actions/setup-python@v1 with: - python-version: '3.7' + python-version: '3.9' - name: Create and start virtual environment run: | @@ -60,4 +60,4 @@ jobs: with: app-name: 'AHealthmonitor' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_34376C731E4841FF915FC07F25FC9AAB }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_79CA4A6A0EBB40279648CCD61A675E6A }} From 6f467267a7bc3b693b786eb98d429fdf887bce2f Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Mon, 23 May 2022 16:50:51 +1000 Subject: [PATCH 08/10] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 2ac90c45f..54471938b 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Health Monitoring System" + return "Health Monitoring System will be deployed soon" From d2f95b02d28cfc0b593398132406af7167d18b12 Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Mon, 23 May 2022 16:52:24 +1000 Subject: [PATCH 09/10] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_ahealthmonitor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master_ahealthmonitor.yml b/.github/workflows/master_ahealthmonitor.yml index bd7f15657..cb28e8eb6 100644 --- a/.github/workflows/master_ahealthmonitor.yml +++ b/.github/workflows/master_ahealthmonitor.yml @@ -60,4 +60,4 @@ jobs: with: app-name: 'AHealthmonitor' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_79CA4A6A0EBB40279648CCD61A675E6A }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_045B13AE66534F179457E0421101F841 }} From 69279e94083ae6270f836d468fec107fab6e26af Mon Sep 17 00:00:00 2001 From: Dharma Weerappulige <99855977+Dharmawp@users.noreply.github.com> Date: Thu, 26 May 2022 12:42:33 +1000 Subject: [PATCH 10/10] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_ahealthmonitor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master_ahealthmonitor.yml b/.github/workflows/master_ahealthmonitor.yml index cb28e8eb6..fa141a1d2 100644 --- a/.github/workflows/master_ahealthmonitor.yml +++ b/.github/workflows/master_ahealthmonitor.yml @@ -60,4 +60,4 @@ jobs: with: app-name: 'AHealthmonitor' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_045B13AE66534F179457E0421101F841 }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D338B9596B344813A99164465B4831A7 }}