From 817d7b2fe278492129357e5b5a0e2287aa5b539a Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Mon, 28 Aug 2023 16:57:21 +1200 Subject: [PATCH 1/8] Add or update the Azure App Service build and deployment workflow config --- .../main_turners-car-insurance-quote.yml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/main_turners-car-insurance-quote.yml diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml new file mode 100644 index 0000000..e402cce --- /dev/null +++ b/.github/workflows/main_turners-car-insurance-quote.yml @@ -0,0 +1,56 @@ +# 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 Node.js app to Azure Web App - turners-car-insurance-quote + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js version + uses: actions/setup-node@v1 + with: + node-version: '18.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: node-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: node-app + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'turners-car-insurance-quote' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32DD104B96B94AB694C4815F817BCA72 }} + package: . From debaa82ccf52a55fe5c8aafb3ebdda3b51958ca6 Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Mon, 28 Aug 2023 17:08:04 +1200 Subject: [PATCH 2/8] Remove the Azure App Service build and deployment workflow config --- .../main_turners-car-insurance-quote.yml | 56 ------------------- 1 file changed, 56 deletions(-) delete mode 100644 .github/workflows/main_turners-car-insurance-quote.yml diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml deleted file mode 100644 index e402cce..0000000 --- a/.github/workflows/main_turners-car-insurance-quote.yml +++ /dev/null @@ -1,56 +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 Node.js app to Azure Web App - turners-car-insurance-quote - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set up Node.js version - uses: actions/setup-node@v1 - with: - node-version: '18.x' - - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm run test --if-present - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v2 - with: - name: node-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: node-app - - - name: 'Deploy to Azure Web App' - uses: azure/webapps-deploy@v2 - id: deploy-to-webapp - with: - app-name: 'turners-car-insurance-quote' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32DD104B96B94AB694C4815F817BCA72 }} - package: . From 7b1bff6ec444b3c61c3c1039d3660d04103439bd Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Mon, 28 Aug 2023 17:09:22 +1200 Subject: [PATCH 3/8] Add or update the Azure App Service build and deployment workflow config --- .../main_turners-car-insurance-quote.yml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/main_turners-car-insurance-quote.yml diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml new file mode 100644 index 0000000..8c4d636 --- /dev/null +++ b/.github/workflows/main_turners-car-insurance-quote.yml @@ -0,0 +1,56 @@ +# 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 Node.js app to Azure Web App - turners-car-insurance-quote + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Node.js version + uses: actions/setup-node@v1 + with: + node-version: '18.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: node-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: node-app + + - name: 'Deploy to Azure Web App' + uses: azure/webapps-deploy@v2 + id: deploy-to-webapp + with: + app-name: 'turners-car-insurance-quote' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B5AF5CA862324AC3980A3FDE92C61F45 }} + package: . From cd58b1997b1bd1d66f80801e11ebdb3c727cc96f Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Mon, 28 Aug 2023 22:17:27 +1200 Subject: [PATCH 4/8] Update main_turners-car-insurance-quote.yml --- .github/workflows/main_turners-car-insurance-quote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml index 8c4d636..2d35a64 100644 --- a/.github/workflows/main_turners-car-insurance-quote.yml +++ b/.github/workflows/main_turners-car-insurance-quote.yml @@ -52,5 +52,5 @@ jobs: with: app-name: 'turners-car-insurance-quote' slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B5AF5CA862324AC3980A3FDE92C61F45 }} + publish-profile: ${{ secrets.NOTHING_TO_SEE_HERE }} package: . From a54e4a05688fe9a78fa9213bffbba13d4d0284b9 Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Tue, 29 Aug 2023 08:11:58 +1200 Subject: [PATCH 5/8] Update main_turners-car-insurance-quote.yml --- .github/workflows/main_turners-car-insurance-quote.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml index 2d35a64..68e5d2b 100644 --- a/.github/workflows/main_turners-car-insurance-quote.yml +++ b/.github/workflows/main_turners-car-insurance-quote.yml @@ -31,7 +31,15 @@ jobs: uses: actions/upload-artifact@v2 with: name: node-app - path: . + path: | + dist/ + src/ + test/ + mocharc.json + package-lock.json + package.json + tsconfig.json + .gitignore deploy: runs-on: ubuntu-latest From 1721aecd609b9e6d766521309bf068919edf7fef Mon Sep 17 00:00:00 2001 From: Helena Lee Date: Tue, 29 Aug 2023 12:17:37 +1200 Subject: [PATCH 6/8] test push --- .github/workflows/m3pipeline.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/m3pipeline.yml b/.github/workflows/m3pipeline.yml index 865d2bd..f7c2120 100644 --- a/.github/workflows/m3pipeline.yml +++ b/.github/workflows/m3pipeline.yml @@ -31,5 +31,4 @@ jobs: - run: npm ci # - run: npm run build --if-present - run: npm test - # comment added From ce6f79ef3a5e7b6a43c3c9782cf643472e3b9c47 Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Tue, 29 Aug 2023 19:01:57 +1200 Subject: [PATCH 7/8] Update main_turners-car-insurance-quote.yml --- .github/workflows/main_turners-car-insurance-quote.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml index 68e5d2b..586d911 100644 --- a/.github/workflows/main_turners-car-insurance-quote.yml +++ b/.github/workflows/main_turners-car-insurance-quote.yml @@ -60,5 +60,5 @@ jobs: with: app-name: 'turners-car-insurance-quote' slot-name: 'Production' - publish-profile: ${{ secrets.NOTHING_TO_SEE_HERE }} + publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} package: . From 5afac418aa01f96f9a4fe6077ba0471f167907a1 Mon Sep 17 00:00:00 2001 From: Jan Vincent Villanueva Date: Tue, 29 Aug 2023 19:02:48 +1200 Subject: [PATCH 8/8] Update main_turners-car-insurance-quote.yml --- .github/workflows/main_turners-car-insurance-quote.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main_turners-car-insurance-quote.yml b/.github/workflows/main_turners-car-insurance-quote.yml index 586d911..a6526f0 100644 --- a/.github/workflows/main_turners-car-insurance-quote.yml +++ b/.github/workflows/main_turners-car-insurance-quote.yml @@ -62,3 +62,6 @@ jobs: slot-name: 'Production' publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} package: . + + + # comment