From 91577308e408c037d930d6488b2b4038eeb2153c Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 17:36:35 +0530 Subject: [PATCH 1/9] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_vogeger-flayers.yml | 63 ++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_vogeger-flayers.yml diff --git a/.github/workflows/master_vogeger-flayers.yml b/.github/workflows/master_vogeger-flayers.yml new file mode 100644 index 000000000..2d1313b84 --- /dev/null +++ b/.github/workflows/master_vogeger-flayers.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 - vogeger-flayers + +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: 'vogeger-flayers' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B929B01BA5F446A9855392312DD129D3 }} From 50465dbfc8c933cca9f27fd1d69d181883ec0fc5 Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 17:41:36 +0530 Subject: [PATCH 2/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7f8a1f2e8..b2c79b442 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World!" + return "Hello, World bhupendra!" From 92b8db248a125425a6c403c37b55ed55a0a1d183 Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:40:57 +0530 Subject: [PATCH 3/9] Add or update the Azure App Service build and deployment workflow config --- .../workflows/master_vogeger-flayers(stg).yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_vogeger-flayers(stg).yml diff --git a/.github/workflows/master_vogeger-flayers(stg).yml b/.github/workflows/master_vogeger-flayers(stg).yml new file mode 100644 index 000000000..fe88ea329 --- /dev/null +++ b/.github/workflows/master_vogeger-flayers(stg).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 - vogeger-flayers + +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: 'Stg' + 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: 'vogeger-flayers' + slot-name: 'Stg' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_80844006B926420AB2C779E9AA3E6E31 }} From 077f4618150525587c827d4f6f46c09935457965 Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:46:19 +0530 Subject: [PATCH 4/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index b2c79b442..62d1b0618 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World bhupendra!" + return "Hello, World bhupendra stg!" From 56d1a9fc9b4af9fa4102b887ecad72180325be1c Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:51:27 +0530 Subject: [PATCH 5/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 62d1b0618..f3cbfb434 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World bhupendra stg!" + return "Hello, World bhupendra stg! new" From 29450ce48b41b3f9cf6b9b848b1dd08668e52041 Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:56:54 +0530 Subject: [PATCH 6/9] Update master_vogeger-flayers(stg).yml --- .github/workflows/master_vogeger-flayers(stg).yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master_vogeger-flayers(stg).yml b/.github/workflows/master_vogeger-flayers(stg).yml index fe88ea329..a27033b07 100644 --- a/.github/workflows/master_vogeger-flayers(stg).yml +++ b/.github/workflows/master_vogeger-flayers(stg).yml @@ -7,7 +7,7 @@ name: Build and deploy Python app to Azure Web App - vogeger-flayers on: push: branches: - - master + - staging workflow_dispatch: jobs: From 23725b8db3e58d5a01b40b078bbd00e4cefcad9d Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 19:59:33 +0530 Subject: [PATCH 7/9] Add or update the Azure App Service build and deployment workflow config --- .../staging_vogeger-flayers(stg).yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/staging_vogeger-flayers(stg).yml diff --git a/.github/workflows/staging_vogeger-flayers(stg).yml b/.github/workflows/staging_vogeger-flayers(stg).yml new file mode 100644 index 000000000..b0288f049 --- /dev/null +++ b/.github/workflows/staging_vogeger-flayers(stg).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 - vogeger-flayers + +on: + push: + branches: + - staging + 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: 'Stg' + 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: 'vogeger-flayers' + slot-name: 'Stg' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7E7FFAC0754C4D7AAFB302D899A67688 }} From 93d7204cf27f321a4f0610e5922e5ea0c9ddb43d Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 20:24:06 +0530 Subject: [PATCH 8/9] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index f3cbfb434..94b7227a4 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World bhupendra stg! new" + return "Hello, World bhupendra stg! " From 385536ddee14505ea8f9e41486565662a9c9ac05 Mon Sep 17 00:00:00 2001 From: Bhupendra1702 <58950818+Bhupendra1702@users.noreply.github.com> Date: Wed, 24 Nov 2021 20:27:21 +0530 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 94b7227a4..3be48f89a 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World bhupendra stg! " + return "Hello, World bhupendra stg"