From ea7c38d7b38390b9134fd319d7eb2b9da4444285 Mon Sep 17 00:00:00 2001 From: Abilabs <76025121+AbiVavilala@users.noreply.github.com> Date: Fri, 16 Sep 2022 17:46:53 +1000 Subject: [PATCH 1/6] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_hariven.yml | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_hariven.yml diff --git a/.github/workflows/master_hariven.yml b/.github/workflows/master_hariven.yml new file mode 100644 index 000000000..e34c6cae8 --- /dev/null +++ b/.github/workflows/master_hariven.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 - hariven + +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: 'hariven' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_1349E11F1303478EBCB85B5758CD0C09 }} From 8b38b76fb94d947a41c5e128446d0f8872ef38c1 Mon Sep 17 00:00:00 2001 From: Abilabs <76025121+AbiVavilala@users.noreply.github.com> Date: Fri, 16 Sep 2022 17:54:30 +1000 Subject: [PATCH 2/6] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7f8a1f2e8..bc40c2e7a 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, World!" + return "Hello, Abilash Rao vavilala" From 2b54a5ab42d73296b7a6f22d65530ddd6cd45d01 Mon Sep 17 00:00:00 2001 From: Abilabs <76025121+AbiVavilala@users.noreply.github.com> Date: Fri, 16 Sep 2022 18:11:35 +1000 Subject: [PATCH 3/6] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_hariven(staging).yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_hariven(staging).yml diff --git a/.github/workflows/master_hariven(staging).yml b/.github/workflows/master_hariven(staging).yml new file mode 100644 index 000000000..cb4e1e311 --- /dev/null +++ b/.github/workflows/master_hariven(staging).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 - hariven + +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: 'staging' + 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: 'hariven' + slot-name: 'staging' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_5E2F1059821B4008B1DC75F28AA691D8 }} From cb01cca839d12c074148dbb5f422132f313ca1d8 Mon Sep 17 00:00:00 2001 From: Abilabs <76025121+AbiVavilala@users.noreply.github.com> Date: Fri, 16 Sep 2022 18:13:16 +1000 Subject: [PATCH 4/6] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index bc40c2e7a..82f1d0200 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route("/") def hello(): - return "Hello, Abilash Rao vavilala" + return "Hello, Priyanka Vavilala :)" From 5896962689ca834dbe2d43bea594692160c9a192 Mon Sep 17 00:00:00 2001 From: Abilabs <76025121+AbiVavilala@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:02:33 +1100 Subject: [PATCH 5/6] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_az104renew681991.yml | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/master_az104renew681991.yml diff --git a/.github/workflows/master_az104renew681991.yml b/.github/workflows/master_az104renew681991.yml new file mode 100644 index 000000000..4822324ab --- /dev/null +++ b/.github/workflows/master_az104renew681991.yml @@ -0,0 +1,69 @@ +# 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 - az104renew681991 + +on: + push: + branches: + - master + 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.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: 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 }} + + 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: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'az104renew681991' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_354F49AA38C34757802CF5798C9457FD }} \ No newline at end of file From 9f626651832da2c339fa1c819e0d655ca62b0fa2 Mon Sep 17 00:00:00 2001 From: Abilabs <76025121+AbiVavilala@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:25:37 +1100 Subject: [PATCH 6/6] Remove the Azure App Service build and deployment workflow config --- .github/workflows/master_az104renew681991.yml | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 .github/workflows/master_az104renew681991.yml diff --git a/.github/workflows/master_az104renew681991.yml b/.github/workflows/master_az104renew681991.yml deleted file mode 100644 index 4822324ab..000000000 --- a/.github/workflows/master_az104renew681991.yml +++ /dev/null @@ -1,69 +0,0 @@ -# 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 - az104renew681991 - -on: - push: - branches: - - master - 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.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: 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 }} - - 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: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'az104renew681991' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_354F49AA38C34757802CF5798C9457FD }} \ No newline at end of file