From 1bf5ecb4ebdc29a031477d759d7d637e6cbc67e1 Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Tue, 6 Sep 2022 15:35:57 -0700 Subject: [PATCH 1/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_cvs-test-app.yml | 63 +++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_cvs-test-app.yml diff --git a/.github/workflows/main_cvs-test-app.yml b/.github/workflows/main_cvs-test-app.yml new file mode 100644 index 000000000..e614a58fa --- /dev/null +++ b/.github/workflows/main_cvs-test-app.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 - cvs-test-app + +on: + push: + branches: + - main + 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: 'cvs-test-app' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_083303B4DFF84EA595CA64687F67D305 }} From e980b76866e884b45a7a80183563d0a9b3714e1f Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Tue, 6 Sep 2022 18:04:31 -0700 Subject: [PATCH 2/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_cvs-test-webapp.yml | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_cvs-test-webapp.yml diff --git a/.github/workflows/main_cvs-test-webapp.yml b/.github/workflows/main_cvs-test-webapp.yml new file mode 100644 index 000000000..9e26bdada --- /dev/null +++ b/.github/workflows/main_cvs-test-webapp.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 - cvs-test-webapp + +on: + push: + branches: + - main + 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: 'cvs-test-webapp' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_5D1EAD7FBCEF46D182490CB877351AA8 }} From 2593e4a9176c9bd03e254d164c8adac626e44f42 Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:44:18 +0000 Subject: [PATCH 3/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_test-webapp-cvs-02.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_test-webapp-cvs-02.yml diff --git a/.github/workflows/main_test-webapp-cvs-02.yml b/.github/workflows/main_test-webapp-cvs-02.yml new file mode 100644 index 000000000..fe9485203 --- /dev/null +++ b/.github/workflows/main_test-webapp-cvs-02.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 - test-webapp-cvs-02 + +on: + push: + branches: + - main + 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: 'test-webapp-cvs-02' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_E46FB81358024E758974D9A4404499EC }} From 9848c4b6e4e3d3066168025aee74fa536b0c70fa Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:48:20 +0000 Subject: [PATCH 4/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_test-cvs-03.yml | 63 ++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_test-cvs-03.yml diff --git a/.github/workflows/main_test-cvs-03.yml b/.github/workflows/main_test-cvs-03.yml new file mode 100644 index 000000000..3228bf9c6 --- /dev/null +++ b/.github/workflows/main_test-cvs-03.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 - test-cvs-03 + +on: + push: + branches: + - main + 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: 'test-cvs-03' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7D224ACFB0B648EEA9D8170066DC50CB }} From 6f2cd7a1e89e3f6c760da35677aebfc0fc29318b Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:49:00 +0000 Subject: [PATCH 5/8] Remove the Azure App Service build and deployment workflow config --- .github/workflows/main_test-cvs-03.yml | 63 -------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/main_test-cvs-03.yml diff --git a/.github/workflows/main_test-cvs-03.yml b/.github/workflows/main_test-cvs-03.yml deleted file mode 100644 index 3228bf9c6..000000000 --- a/.github/workflows/main_test-cvs-03.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 - test-cvs-03 - -on: - push: - branches: - - main - 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: 'test-cvs-03' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_7D224ACFB0B648EEA9D8170066DC50CB }} From 77809e8a9a136ed5616b4b3f49bcf7c952ba5a4c Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:51:46 +0000 Subject: [PATCH 6/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_test-web-app-cvs.yml | 63 +++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_test-web-app-cvs.yml diff --git a/.github/workflows/main_test-web-app-cvs.yml b/.github/workflows/main_test-web-app-cvs.yml new file mode 100644 index 000000000..55cc76591 --- /dev/null +++ b/.github/workflows/main_test-web-app-cvs.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 - test-web-app-cvs + +on: + push: + branches: + - main + 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: 'test-web-app-cvs' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_BBBFCCA330E448DCBED04C7A61A531E4 }} From 5bd77fd3d79c3e1569fea691f7e88a5bac9ea9d8 Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Thu, 15 Sep 2022 20:34:27 +0000 Subject: [PATCH 7/8] Add or update the Azure App Service build and deployment workflow config --- .../workflows/main_pub-test-web-app-cvs.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_pub-test-web-app-cvs.yml diff --git a/.github/workflows/main_pub-test-web-app-cvs.yml b/.github/workflows/main_pub-test-web-app-cvs.yml new file mode 100644 index 000000000..893f349b7 --- /dev/null +++ b/.github/workflows/main_pub-test-web-app-cvs.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 - pub-test-web-app-cvs + +on: + push: + branches: + - main + 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: 'pub-test-web-app-cvs' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_92E8C1564F94404A9D2724BD153283B6 }} From a46f107d8d8dfde72454550851eff14f4ada23bf Mon Sep 17 00:00:00 2001 From: Wes Dye <35645570+wesleyd7@users.noreply.github.com> Date: Fri, 16 Sep 2022 01:58:03 +0000 Subject: [PATCH 8/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_test-west-3-public.yml | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/main_test-west-3-public.yml diff --git a/.github/workflows/main_test-west-3-public.yml b/.github/workflows/main_test-west-3-public.yml new file mode 100644 index 000000000..de94e38d7 --- /dev/null +++ b/.github/workflows/main_test-west-3-public.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 - test-west-3-public + +on: + push: + branches: + - main + 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: 'test-west-3-public' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_C423045794FB4513A7308EBDFACA90F1 }}