From a4bb7baf2fabbdacd7b361c29c123d62ff32b940 Mon Sep 17 00:00:00 2001 From: chowdaryprasaad <55167034+chowdaryprasaad@users.noreply.github.com> Date: Tue, 28 Dec 2021 23:33:23 +0530 Subject: [PATCH 1/3] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_test9989899.yml | 63 ++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/master_test9989899.yml diff --git a/.github/workflows/master_test9989899.yml b/.github/workflows/master_test9989899.yml new file mode 100644 index 0000000..d797179 --- /dev/null +++ b/.github/workflows/master_test9989899.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 - test9989899 + +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: 'test9989899' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E399D5FAA146493D8AB0EA1C442F9A6F }} From 10b60fb2eb9aa65326be4a386df15a3fcee49425 Mon Sep 17 00:00:00 2001 From: chowdaryprasaad <55167034+chowdaryprasaad@users.noreply.github.com> Date: Tue, 28 Dec 2021 23:44:35 +0530 Subject: [PATCH 2/3] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_test9989899.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/master_test9989899.yml b/.github/workflows/master_test9989899.yml index d797179..b854ba3 100644 --- a/.github/workflows/master_test9989899.yml +++ b/.github/workflows/master_test9989899.yml @@ -60,4 +60,4 @@ jobs: with: app-name: 'test9989899' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E399D5FAA146493D8AB0EA1C442F9A6F }} + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FA837EA49B6347E4BA029D3626126E18 }} From e810715f3358dcaec159765dc71b95559430e6bb Mon Sep 17 00:00:00 2001 From: chowdaryprasaad <55167034+chowdaryprasaad@users.noreply.github.com> Date: Tue, 28 Dec 2021 23:45:17 +0530 Subject: [PATCH 3/3] Remove the Azure App Service build and deployment workflow config --- .github/workflows/master_test9989899.yml | 63 ------------------------ 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/master_test9989899.yml diff --git a/.github/workflows/master_test9989899.yml b/.github/workflows/master_test9989899.yml deleted file mode 100644 index b854ba3..0000000 --- a/.github/workflows/master_test9989899.yml +++ /dev/null @@ -1,63 +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 - test9989899 - -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: 'test9989899' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FA837EA49B6347E4BA029D3626126E18 }}