From 4ffe8ac1b4d08df04f80a290eca948e7e32da53b Mon Sep 17 00:00:00 2001 From: Felipe Geovanny Villarreal Aguilar <157396049+OpticBuzzard@users.noreply.github.com> Date: Fri, 28 Nov 2025 14:38:29 -0600 Subject: [PATCH 1/4] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_apphelloworld.yml | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 .github/workflows/master_apphelloworld.yml diff --git a/.github/workflows/master_apphelloworld.yml b/.github/workflows/master_apphelloworld.yml new file mode 100644 index 000000000..4d9b08c81 --- /dev/null +++ b/.github/workflows/master_apphelloworld.yml @@ -0,0 +1,70 @@ +# 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 - AppHelloWorld + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read #This is required for actions/checkout + + 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: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + with: + name: php-app + path: . + + deploy: + runs-on: ubuntu-latest + needs: build + permissions: + id-token: write #This is required for requesting the JWT + contents: read #This is required for actions/checkout + + steps: + - name: Download artifact from build job + uses: actions/download-artifact@v4 + with: + name: php-app + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F97917DBADE5402AB8AC0906EF70DE5E }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_2312187D695941CA8AD95FFA17730A28 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9357D200318F4865BA4CA93133F48F44 }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v3 + id: deploy-to-webapp + with: + app-name: 'AppHelloWorld' + slot-name: 'Production' + package: . + \ No newline at end of file From 84418e78a03c0d4ca2d06fa1cad25ba0ae6e064b Mon Sep 17 00:00:00 2001 From: Felipe Geovanny Villarreal Aguilar <157396049+OpticBuzzard@users.noreply.github.com> Date: Fri, 28 Nov 2025 17:15:58 -0600 Subject: [PATCH 2/4] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_apphelloworld.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/master_apphelloworld.yml b/.github/workflows/master_apphelloworld.yml index 4d9b08c81..9b9770ce8 100644 --- a/.github/workflows/master_apphelloworld.yml +++ b/.github/workflows/master_apphelloworld.yml @@ -56,9 +56,9 @@ jobs: - name: Login to Azure uses: azure/login@v2 with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F97917DBADE5402AB8AC0906EF70DE5E }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_2312187D695941CA8AD95FFA17730A28 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_9357D200318F4865BA4CA93133F48F44 }} + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_2B824B2B8E6D459D9E94DB6759B64882 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_3E71A64B397C409F957AA8B4CC820DF9 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_2D8B04C154A24D5C819BBE05BB6ABADF }} - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 From 4134caf1b0ed62ba4aac2a050b5a3dcb6483a84f Mon Sep 17 00:00:00 2001 From: Felipe Geovanny Villarreal Aguilar <157396049+OpticBuzzard@users.noreply.github.com> Date: Fri, 28 Nov 2025 18:21:52 -0500 Subject: [PATCH 3/4] Update index.php Add !! --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 82966e27a..e4349c3b6 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,3 @@ Date: Fri, 28 Nov 2025 18:33:26 -0500 Subject: [PATCH 4/4] nueva version --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index e4349c3b6..7a0601ca3 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,3 @@