From baabceafbb5c0bea40743b1281a4c06326790dda Mon Sep 17 00:00:00 2001 From: shyzinn <44265970+shyzinn@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:37:45 +0000 Subject: [PATCH 01/23] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_wellitsupport.yml | 66 ++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/master_wellitsupport.yml diff --git a/.github/workflows/master_wellitsupport.yml b/.github/workflows/master_wellitsupport.yml new file mode 100644 index 000000000..4b1cb7865 --- /dev/null +++ b/.github/workflows/master_wellitsupport.yml @@ -0,0 +1,66 @@ +# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy +# More GitHub Actions for Azure: https://github.com/Azure/actions + +name: Build and deploy PHP app to Azure Web App - wellitsupport + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + + - name: Check if composer.json exists + id: check_files + uses: andstor/file-existence-action@v1 + with: + files: 'composer.json' + + - name: Run composer install if composer.json exists + if: steps.check_files.outputs.files_exists == 'true' + run: composer validate --no-check-publish && composer install --prefer-dist --no-progress + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: php-app + path: release.zip + + 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: php-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: 'wellitsupport' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_15C9046B281540AFA649D20EF83C7DE0 }} + package: . From 5bbd0e947e8be80768a89342994050d9cb33a719 Mon Sep 17 00:00:00 2001 From: shyzinn <44265970+shyzinn@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:39:58 +0000 Subject: [PATCH 02/23] new_commit --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 82966e27a..a9da29454 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,3 @@ Date: Wed, 1 Nov 2023 15:47:00 +0000 Subject: [PATCH 03/23] new_testIP --- index.php | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index a9da29454..b215a0a96 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,28 @@ - + +
+