From 50b70a46ebddbcdb7014e6f89c3acfdc33bd8bdb Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 8 Dec 2023 21:45:40 +0530 Subject: [PATCH 01/27] Update index.html --- cafe/index.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/cafe/index.html b/cafe/index.html index e2201e8..914863f 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -293,5 +293,28 @@

Make a Reservation

+ From 082fe09c95a446bd29b6118368ed85a24ecc70ec Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:46:28 +0530 Subject: [PATCH 02/27] Update index.html --- cafe/index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/cafe/index.html b/cafe/index.html index 914863f..8c643a3 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -27,7 +27,6 @@ -
- +
From f26d548f74922d3b59f9776050762f04611ff186 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Tue, 19 Dec 2023 12:44:02 +0530 Subject: [PATCH 07/27] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_smithacafe.yml | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/main_smithacafe.yml diff --git a/.github/workflows/main_smithacafe.yml b/.github/workflows/main_smithacafe.yml new file mode 100644 index 0000000..e2ba6ed --- /dev/null +++ b/.github/workflows/main_smithacafe.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 - smithacafe + +on: + push: + branches: + - main + 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: 'smithacafe' + slot-name: 'Production' + package: . + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CC6BFEA02C604B6B9A510F789424EFCE }} \ No newline at end of file From fda5d9d2ca307a79dcc5239ee804ea3024c85115 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:39:44 +0530 Subject: [PATCH 08/27] Update index.html --- cafe/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cafe/index.html b/cafe/index.html index 992e36a..8c643a3 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -34,13 +34,13 @@ =========================================================-->
- +
From 0427e2e500caaf54c60ad603cbcbdd8c0597851d Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Tue, 19 Dec 2023 15:56:43 +0530 Subject: [PATCH 09/27] Update index.html --- cafe/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cafe/index.html b/cafe/index.html index 8c643a3..19733d4 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -1,6 +1,8 @@  + + Home From 7f40f0e6b33d5472f2c6d3a8afc4e2832ade5007 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:14:39 +0530 Subject: [PATCH 10/27] Update index.html --- cafe/index.html | 32 +++++++++++--------------------- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/cafe/index.html b/cafe/index.html index 19733d4..e083bf3 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -295,27 +295,17 @@

Make a Reservation

From 3d8ea25ee8f21e492657cdf660295e39645c9347 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:45:22 +0530 Subject: [PATCH 11/27] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_smithacafeapp.yml | 27 ++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main_smithacafeapp.yml b/.github/workflows/main_smithacafeapp.yml index 906165b..52d410f 100644 --- a/.github/workflows/main_smithacafeapp.yml +++ b/.github/workflows/main_smithacafeapp.yml @@ -14,12 +14,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.2' - name: Check if composer.json exists id: check_files @@ -31,11 +31,14 @@ jobs: 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@v2 + uses: actions/upload-artifact@v3 with: name: php-app - path: . + path: release.zip deploy: runs-on: ubuntu-latest @@ -43,18 +46,30 @@ jobs: environment: name: 'Production' url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT steps: - name: Download artifact from build job - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3 with: name: php-app + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E2634699F6BD4FE5B6493F98AE46C2C5 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_B84EC3F4129F40F682D089701EB29A4E }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_EF52781BAD3C4124B01FF6047C8EE89F }} + - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v2 id: deploy-to-webapp with: app-name: 'smithacafeapp' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FE215841368342B8891F24352F41CFE8 }} package: . + \ No newline at end of file From 3f81c9c532607d3407cb6686ea5afa28df4d4b6d Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:00:11 +0530 Subject: [PATCH 12/27] Delete .github/workflows directory --- .github/workflows/main_smithaapp.yml | 60 ------------------- .github/workflows/main_smithacafe.yml | 66 --------------------- .github/workflows/main_smithacafeapp.yml | 75 ------------------------ 3 files changed, 201 deletions(-) delete mode 100644 .github/workflows/main_smithaapp.yml delete mode 100644 .github/workflows/main_smithacafe.yml delete mode 100644 .github/workflows/main_smithacafeapp.yml diff --git a/.github/workflows/main_smithaapp.yml b/.github/workflows/main_smithaapp.yml deleted file mode 100644 index 8a46a0f..0000000 --- a/.github/workflows/main_smithaapp.yml +++ /dev/null @@ -1,60 +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 - -name: Build and deploy PHP app to Azure Web App - smithaapp - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.0' - - - 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@v2 - with: - name: php-app - path: . - - 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: php-app - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'smithaapp' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_434C54A8A0124364B61A9A0EDD39F03C }} - package: . diff --git a/.github/workflows/main_smithacafe.yml b/.github/workflows/main_smithacafe.yml deleted file mode 100644 index e2ba6ed..0000000 --- a/.github/workflows/main_smithacafe.yml +++ /dev/null @@ -1,66 +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 - -name: Build and deploy PHP app to Azure Web App - smithacafe - -on: - push: - branches: - - main - 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: 'smithacafe' - slot-name: 'Production' - package: . - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_CC6BFEA02C604B6B9A510F789424EFCE }} \ No newline at end of file diff --git a/.github/workflows/main_smithacafeapp.yml b/.github/workflows/main_smithacafeapp.yml deleted file mode 100644 index 52d410f..0000000 --- a/.github/workflows/main_smithacafeapp.yml +++ /dev/null @@ -1,75 +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 - -name: Build and deploy PHP app to Azure Web App - smithacafeapp - -on: - push: - branches: - - main - 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 }} - permissions: - id-token: write #This is required for requesting the JWT - - 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: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E2634699F6BD4FE5B6493F98AE46C2C5 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_B84EC3F4129F40F682D089701EB29A4E }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_EF52781BAD3C4124B01FF6047C8EE89F }} - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'smithacafeapp' - slot-name: 'Production' - package: . - \ No newline at end of file From 03045465592c85feed22f791d37948afa65fca42 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:26:21 +0530 Subject: [PATCH 13/27] Update index.html --- cafe/index.html | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/cafe/index.html b/cafe/index.html index e083bf3..eec69e9 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -293,19 +293,28 @@

Make a Reservation

- - From fc055b0ac160b864926f289ed74dd54ea11323e6 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:40:10 +0530 Subject: [PATCH 14/27] Update index.html --- cafe/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cafe/index.html b/cafe/index.html index eec69e9..d5ef585 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -303,13 +303,13 @@

Make a Reservation

// Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { - apiKey: "AIzaSyD_zHd6z4k-xV0ZXSO0fNrNCrCknVyovRc", - authDomain: "smithatest1-9eb8a.firebaseapp.com", - projectId: "smithatest1-9eb8a", - storageBucket: "smithatest1-9eb8a.appspot.com", - messagingSenderId: "201763092762", - appId: "1:201763092762:web:031986124d0f60b67414a3", - measurementId: "G-3KWGJZ536L" + apiKey: "AIzaSyDbI7w0aSQ53gGoRdtNKWN36cg40hCpYGM", + authDomain: "smithatest1-76514.firebaseapp.com", + projectId: "smithatest1-76514", + storageBucket: "smithatest1-76514.appspot.com", + messagingSenderId: "988011346266", + appId: "1:988011346266:web:7810cfe8596c20a3a89b63", + measurementId: "G-DHRQ6783Q7" }; // Initialize Firebase From 001b5b11ff88d3cab834c391fe99ecd80963a1c3 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 15:58:21 +0530 Subject: [PATCH 15/27] Update deployServer.sh --- deployServer.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployServer.sh b/deployServer.sh index 35cbda4..18343cb 100644 --- a/deployServer.sh +++ b/deployServer.sh @@ -1,4 +1,6 @@ sudo apt update && sudo apt install apache2 -y +sudo apt install nodejs +sudo npm install firebase sudo mv cafe /var/www/html cd /var/www/html From d6d81febeeab341eb6358d8d7c01dd0f2e8d785a Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:09:59 +0530 Subject: [PATCH 16/27] Update deployServer.sh --- deployServer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployServer.sh b/deployServer.sh index 18343cb..77d5385 100644 --- a/deployServer.sh +++ b/deployServer.sh @@ -1,6 +1,6 @@ sudo apt update && sudo apt install apache2 -y -sudo apt install nodejs -sudo npm install firebase +sudo apt install nodejs -y +sudo npm install firebase -y sudo mv cafe /var/www/html cd /var/www/html From 76a1416ffb374fb750f665cab23a6f4365737062 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:20:23 +0530 Subject: [PATCH 17/27] Update deployServer.sh --- deployServer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployServer.sh b/deployServer.sh index 77d5385..376542d 100644 --- a/deployServer.sh +++ b/deployServer.sh @@ -1,5 +1,5 @@ sudo apt update && sudo apt install apache2 -y -sudo apt install nodejs -y +sudo apt install nodejs npm -y sudo npm install firebase -y sudo mv cafe /var/www/html From 378ea5413d66d93f6fa51c074dcd50472bc8e724 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Mon, 25 Mar 2024 09:28:19 +0530 Subject: [PATCH 18/27] Update deployServer.sh --- deployServer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deployServer.sh b/deployServer.sh index 376542d..01f0e27 100644 --- a/deployServer.sh +++ b/deployServer.sh @@ -1,6 +1,7 @@ sudo apt update && sudo apt install apache2 -y -sudo apt install nodejs npm -y -sudo npm install firebase -y +# 20/3/2024 Added for Firebase AB Testing. But AB testing of web app using Remote Config not enabled yet in Firebase. +# sudo apt install nodejs npm -y +# sudo npm install firebase -y sudo mv cafe /var/www/html cd /var/www/html From 044bab2927b7d1ca3bfd88cec2a71af89d4136e3 Mon Sep 17 00:00:00 2001 From: Smitha Menon <98273657+SmithaVerity@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:30:13 +0530 Subject: [PATCH 19/27] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_smithaapp.yml | 75 ++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/main_smithaapp.yml diff --git a/.github/workflows/main_smithaapp.yml b/.github/workflows/main_smithaapp.yml new file mode 100644 index 0000000..4774bc7 --- /dev/null +++ b/.github/workflows/main_smithaapp.yml @@ -0,0 +1,75 @@ +# 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 - smithaapp + +on: + push: + branches: + - main + 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 }} + permissions: + id-token: write #This is required for requesting the JWT + + 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: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C89A1851509B439EBAEEAB5E6206DDED }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_22EA37431EFF4B6DBC5414F60BA87AF2 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7496A930DCB1445A966136F1AFFD319B }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'smithaapp' + slot-name: 'Production' + package: . + \ No newline at end of file From ad47b324516cdd7d5cfe1d6cd32ae75f52e1052b Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:54:00 +0530 Subject: [PATCH 20/27] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_padmavathiapp.yml | 75 ++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/main_padmavathiapp.yml diff --git a/.github/workflows/main_padmavathiapp.yml b/.github/workflows/main_padmavathiapp.yml new file mode 100644 index 0000000..5c2cfef --- /dev/null +++ b/.github/workflows/main_padmavathiapp.yml @@ -0,0 +1,75 @@ +# 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 - PadmavathiApp + +on: + push: + branches: + - main + 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 }} + permissions: + id-token: write #This is required for requesting the JWT + + 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: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3C4D4F1179574B71ABCD64929C5D3258 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_703981FED0DB422BA2CD2793B31240A4 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_924F372AF467494DB0CC59054D41D059 }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'PadmavathiApp' + slot-name: 'Production' + package: . + \ No newline at end of file From 9154263b3ebf8b94ed3650edd580e8eaa75a18cb Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:07:54 +0530 Subject: [PATCH 21/27] Delete .github/workflows directory --- .github/workflows/main_padmavathiapp.yml | 75 ------------------------ .github/workflows/main_smithaapp.yml | 75 ------------------------ 2 files changed, 150 deletions(-) delete mode 100644 .github/workflows/main_padmavathiapp.yml delete mode 100644 .github/workflows/main_smithaapp.yml diff --git a/.github/workflows/main_padmavathiapp.yml b/.github/workflows/main_padmavathiapp.yml deleted file mode 100644 index 5c2cfef..0000000 --- a/.github/workflows/main_padmavathiapp.yml +++ /dev/null @@ -1,75 +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 - -name: Build and deploy PHP app to Azure Web App - PadmavathiApp - -on: - push: - branches: - - main - 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 }} - permissions: - id-token: write #This is required for requesting the JWT - - 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: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3C4D4F1179574B71ABCD64929C5D3258 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_703981FED0DB422BA2CD2793B31240A4 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_924F372AF467494DB0CC59054D41D059 }} - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'PadmavathiApp' - slot-name: 'Production' - package: . - \ No newline at end of file diff --git a/.github/workflows/main_smithaapp.yml b/.github/workflows/main_smithaapp.yml deleted file mode 100644 index 4774bc7..0000000 --- a/.github/workflows/main_smithaapp.yml +++ /dev/null @@ -1,75 +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 - -name: Build and deploy PHP app to Azure Web App - smithaapp - -on: - push: - branches: - - main - 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 }} - permissions: - id-token: write #This is required for requesting the JWT - - 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: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_C89A1851509B439EBAEEAB5E6206DDED }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_22EA37431EFF4B6DBC5414F60BA87AF2 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7496A930DCB1445A966136F1AFFD319B }} - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'smithaapp' - slot-name: 'Production' - package: . - \ No newline at end of file From cc166a6ff471806f83c764cc28044257893da85e Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:08:53 +0530 Subject: [PATCH 22/27] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/main_padmavathiapp.yml | 75 ++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/main_padmavathiapp.yml diff --git a/.github/workflows/main_padmavathiapp.yml b/.github/workflows/main_padmavathiapp.yml new file mode 100644 index 0000000..e8a6739 --- /dev/null +++ b/.github/workflows/main_padmavathiapp.yml @@ -0,0 +1,75 @@ +# 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 - PadmavathiApp + +on: + push: + branches: + - main + 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 }} + permissions: + id-token: write #This is required for requesting the JWT + + 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: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_5CB4CC18348D443CAF2C770A470F8884 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_A9C6603119674C0E9E5EEE09459F8BB6 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_58D3C255EBA748A6BEC55A8DC8D6DE2F }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'PadmavathiApp' + slot-name: 'Production' + package: . + \ No newline at end of file From 351e1fd81f6d204814004d6d5cab5cc5067b6619 Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:29:14 +0530 Subject: [PATCH 23/27] Update index.html --- cafe/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cafe/index.html b/cafe/index.html index d5ef585..ff5cc4b 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -62,7 +62,7 @@
From 4d27e48ac8f91cad43b248b398e1a3f123aa12f0 Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:30:40 +0530 Subject: [PATCH 24/27] Add or update the Azure App Service build and deployment workflow config --- .../workflows/green_padmavathiapp(green).yml | 75 +++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/green_padmavathiapp(green).yml diff --git a/.github/workflows/green_padmavathiapp(green).yml b/.github/workflows/green_padmavathiapp(green).yml new file mode 100644 index 0000000..3a62802 --- /dev/null +++ b/.github/workflows/green_padmavathiapp(green).yml @@ -0,0 +1,75 @@ +# 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 - padmavathiapp + +on: + push: + branches: + - green + 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: 'green' + url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} + permissions: + id-token: write #This is required for requesting the JWT + + 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: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B716A1BD00284BDBB0BAADAE7BE23E75 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_6AF65D34E5B2408FA1A37631A05D4A27 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_33DB3B5AEF5C42F48963EAFAE986B948 }} + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'padmavathiapp' + slot-name: 'green' + package: . + \ No newline at end of file From e2a2ed27f4397ae4252306a07176b86757379514 Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:36:06 +0530 Subject: [PATCH 25/27] Remove the Azure App Service build and deployment workflow config --- .../workflows/green_padmavathiapp(green).yml | 75 ------------------- 1 file changed, 75 deletions(-) delete mode 100644 .github/workflows/green_padmavathiapp(green).yml diff --git a/.github/workflows/green_padmavathiapp(green).yml b/.github/workflows/green_padmavathiapp(green).yml deleted file mode 100644 index 3a62802..0000000 --- a/.github/workflows/green_padmavathiapp(green).yml +++ /dev/null @@ -1,75 +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 - -name: Build and deploy PHP app to Azure Web App - padmavathiapp - -on: - push: - branches: - - green - 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: 'green' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - permissions: - id-token: write #This is required for requesting the JWT - - 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: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B716A1BD00284BDBB0BAADAE7BE23E75 }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_6AF65D34E5B2408FA1A37631A05D4A27 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_33DB3B5AEF5C42F48963EAFAE986B948 }} - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'padmavathiapp' - slot-name: 'green' - package: . - \ No newline at end of file From 778b548025f9f5d93ccdb71ff6300c505c52195d Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:36:48 +0530 Subject: [PATCH 26/27] Add or update the Azure App Service build and deployment workflow config --- .../workflows/green_padmavathiapp(green).yml | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/green_padmavathiapp(green).yml diff --git a/.github/workflows/green_padmavathiapp(green).yml b/.github/workflows/green_padmavathiapp(green).yml new file mode 100644 index 0000000..7652476 --- /dev/null +++ b/.github/workflows/green_padmavathiapp(green).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 - padmavathiapp + +on: + push: + branches: + - green + 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: 'green' + 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: 'padmavathiapp' + slot-name: 'green' + package: . + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D172A90611E6446EBD97E9512CAAF291 }} \ No newline at end of file From 96328139974c1e777b48020e9e890aa158d6f794 Mon Sep 17 00:00:00 2001 From: padmavathiboddu <68076413+padmavathiboddu@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:41:40 +0530 Subject: [PATCH 27/27] Update index.html --- cafe/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cafe/index.html b/cafe/index.html index ff5cc4b..828142f 100644 --- a/cafe/index.html +++ b/cafe/index.html @@ -62,7 +62,7 @@