From 4f02853b237acbe5600628ffde5b6b24ca7e7f37 Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 03:13:11 -0800 Subject: [PATCH 1/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7f8a1f2e8..e42fb5073 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World!" + return "Hello, W0rld!" From a4e7c8b141de07da431decdf5fae3b31cc8ad84d Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 03:24:44 -0800 Subject: [PATCH 2/9] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_nevisol.yml | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_nevisol.yml diff --git a/.github/workflows/master_nevisol.yml b/.github/workflows/master_nevisol.yml new file mode 100644 index 000000000..88840e289 --- /dev/null +++ b/.github/workflows/master_nevisol.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 - nevisol + +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.8' + + - 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: 'nevisol' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F47CD3DAF643427DAA28446D53B80B01 }} From 76125f6b87436f8cd55b37e5ab3110749357b1f2 Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 05:10:18 -0800 Subject: [PATCH 3/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index e42fb5073..41ca22161 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, W0rld!" + return "Hello, WOrld....!" From dd1487777b6c6dd349a26dba4cf927acd7901f5e Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 05:12:36 -0800 Subject: [PATCH 4/9] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_nevisol.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master_nevisol.yml b/.github/workflows/master_nevisol.yml index 88840e289..b523fa106 100644 --- a/.github/workflows/master_nevisol.yml +++ b/.github/workflows/master_nevisol.yml @@ -60,4 +60,4 @@ jobs: with: app-name: 'nevisol' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F47CD3DAF643427DAA28446D53B80B01 }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_24663C0DEFC04D48AE79A458BABE01C8 }} From 20902266bdb8eb099763ce8beb5fca222e021680 Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 05:32:32 -0800 Subject: [PATCH 5/9] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_nevisol(st1).yml | 63 +++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_nevisol(st1).yml diff --git a/.github/workflows/master_nevisol(st1).yml b/.github/workflows/master_nevisol(st1).yml new file mode 100644 index 000000000..7c35dbacb --- /dev/null +++ b/.github/workflows/master_nevisol(st1).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 - nevisol + +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.8' + + - 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: 'st1' + 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: 'nevisol' + slot-name: 'st1' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CECECCC5FFEB416BAC8B473044B139F5 }} From 6ae64b6d056006987654367b327647f2b8cc123b Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 06:16:41 -0800 Subject: [PATCH 6/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 41ca22161..ab7b1b6e3 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, WOrld....!" + return "Hello, Iftikhar WOrld....!" From aaee580b09d288203e8c3d6117ff2bb5ddb4113c Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 07:22:34 -0800 Subject: [PATCH 7/9] Update master_nevisol(st1).yml --- .github/workflows/master_nevisol(st1).yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/master_nevisol(st1).yml b/.github/workflows/master_nevisol(st1).yml index 7c35dbacb..da95b048f 100644 --- a/.github/workflows/master_nevisol(st1).yml +++ b/.github/workflows/master_nevisol(st1).yml @@ -8,6 +8,7 @@ on: push: branches: - master + - st2 workflow_dispatch: jobs: From 6f69fd5ab421a15d8247def2d67772611f62e9f5 Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 07:25:25 -0800 Subject: [PATCH 8/9] Update master_nevisol.yml --- .github/workflows/master_nevisol.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/master_nevisol.yml b/.github/workflows/master_nevisol.yml index b523fa106..ca7ef7bd1 100644 --- a/.github/workflows/master_nevisol.yml +++ b/.github/workflows/master_nevisol.yml @@ -8,6 +8,8 @@ on: push: branches: - master + - st1 + - st2 workflow_dispatch: jobs: From cc0ef3b63c0809ce6bd783d0f034ad36ffc37e32 Mon Sep 17 00:00:00 2001 From: Iftikhar Alam Khan <56865752+raoiftikhar@users.noreply.github.com> Date: Tue, 10 Jan 2023 07:45:58 -0800 Subject: [PATCH 9/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ab7b1b6e3..749bddb32 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, Iftikhar WOrld....!" + return "Hello, Shaheer WOrld....!"