From 1ee7497074f63131f3817b8c432df36b4f8e1b71 Mon Sep 17 00:00:00 2001 From: maloygit Date: Fri, 12 Jul 2024 11:24:20 +0530 Subject: [PATCH 1/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_maloy15.yml | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/master_maloy15.yml diff --git a/.github/workflows/master_maloy15.yml b/.github/workflows/master_maloy15.yml new file mode 100644 index 00000000..727bfed5 --- /dev/null +++ b/.github/workflows/master_maloy15.yml @@ -0,0 +1,62 @@ +# 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 - maloy15 + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js version + uses: actions/setup-node@v3 + with: + node-version: '20.x' + + - name: npm install, build, and test + run: | + npm install + npm run build --if-present + npm run test --if-present + + - name: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: node-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: node-app + + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: 'Deploy to Azure Web App' + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'maloy15' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_12CEE958527A4A869F4659F5AF678E96 }} + package: . From f6d723b0e4a1b93c5f421452d52d49f73f3f5cf6 Mon Sep 17 00:00:00 2001 From: maloygit Date: Fri, 12 Jul 2024 11:30:43 +0530 Subject: [PATCH 2/8] Add or update the Azure App Service build and deployment workflow config --- .github/workflows/master_maloy18.yml | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/master_maloy18.yml diff --git a/.github/workflows/master_maloy18.yml b/.github/workflows/master_maloy18.yml new file mode 100644 index 00000000..32f92a9c --- /dev/null +++ b/.github/workflows/master_maloy18.yml @@ -0,0 +1,62 @@ +# 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 - maloy18 + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Node.js version + uses: actions/setup-node@v3 + 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: Zip artifact for deployment + run: zip release.zip ./* -r + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + with: + name: node-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: node-app + + - name: Unzip artifact for deployment + run: unzip release.zip + + - name: 'Deploy to Azure Web App' + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'maloy18' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_3EC75D14AB6A49868642BC3155013044 }} + package: . From ea0f12a4606969264f3e7c86c79b73e2cc2eb687 Mon Sep 17 00:00:00 2001 From: maloygit Date: Fri, 12 Jul 2024 11:38:09 +0530 Subject: [PATCH 3/8] Update master_maloy18.yml --- .github/workflows/master_maloy18.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/master_maloy18.yml b/.github/workflows/master_maloy18.yml index 32f92a9c..a95d2e72 100644 --- a/.github/workflows/master_maloy18.yml +++ b/.github/workflows/master_maloy18.yml @@ -22,6 +22,16 @@ jobs: node-version: '18.x' - name: npm install, build, and test + - name: Install dependencies + run: | + if [ -e yarn.lock ]; then + yarn install --frozen-lockfile + elif [ -e package-lock.json ]; then + npm ci + else + npm i + fi + run: | npm install npm run build --if-present From 5188c04ac90d04aa53a3a5a486e10c3c1db8b4df Mon Sep 17 00:00:00 2001 From: maloygit Date: Fri, 12 Jul 2024 11:42:02 +0530 Subject: [PATCH 4/8] Update master_maloy18.yml --- .github/workflows/master_maloy18.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master_maloy18.yml b/.github/workflows/master_maloy18.yml index a95d2e72..a5162a52 100644 --- a/.github/workflows/master_maloy18.yml +++ b/.github/workflows/master_maloy18.yml @@ -21,7 +21,7 @@ jobs: with: node-version: '18.x' - - name: npm install, build, and test + - name: Install dependencies run: | if [ -e yarn.lock ]; then @@ -31,7 +31,7 @@ jobs: else npm i fi - + - name: npm install, build, and test run: | npm install npm run build --if-present From 275556736ef2a0c2dc268795281e0658bc778e33 Mon Sep 17 00:00:00 2001 From: maloygit Date: Fri, 12 Jul 2024 11:44:23 +0530 Subject: [PATCH 5/8] Update master_maloy15.yml --- .github/workflows/master_maloy15.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/master_maloy15.yml b/.github/workflows/master_maloy15.yml index 727bfed5..9db0b671 100644 --- a/.github/workflows/master_maloy15.yml +++ b/.github/workflows/master_maloy15.yml @@ -21,6 +21,16 @@ jobs: with: node-version: '20.x' + - name: Install dependencies + run: | + if [ -e yarn.lock ]; then + yarn install --frozen-lockfile + elif [ -e package-lock.json ]; then + npm ci + else + npm i + fi + - name: npm install, build, and test run: | npm install From f6d888d370864535c8bb8acae8c978417e7d74f6 Mon Sep 17 00:00:00 2001 From: maloygit Date: Fri, 12 Jul 2024 11:45:06 +0530 Subject: [PATCH 6/8] Remove the Azure App Service build and deployment workflow config --- .github/workflows/master_maloy18.yml | 72 ---------------------------- 1 file changed, 72 deletions(-) delete mode 100644 .github/workflows/master_maloy18.yml diff --git a/.github/workflows/master_maloy18.yml b/.github/workflows/master_maloy18.yml deleted file mode 100644 index a5162a52..00000000 --- a/.github/workflows/master_maloy18.yml +++ /dev/null @@ -1,72 +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 - maloy18 - -on: - push: - branches: - - master - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: Set up Node.js version - uses: actions/setup-node@v3 - with: - node-version: '18.x' - - - - name: Install dependencies - run: | - if [ -e yarn.lock ]; then - yarn install --frozen-lockfile - elif [ -e package-lock.json ]; then - npm ci - else - npm i - fi - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm run test --if-present - - - name: Zip artifact for deployment - run: zip release.zip ./* -r - - - name: Upload artifact for deployment job - uses: actions/upload-artifact@v3 - with: - name: node-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: node-app - - - name: Unzip artifact for deployment - run: unzip release.zip - - - name: 'Deploy to Azure Web App' - id: deploy-to-webapp - uses: azure/webapps-deploy@v2 - with: - app-name: 'maloy18' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_3EC75D14AB6A49868642BC3155013044 }} - package: . From 6ad163c9bcb5044295522ea823391c7ce0d39f4d Mon Sep 17 00:00:00 2001 From: Maloy Date: Mon, 3 Mar 2025 21:03:28 +0530 Subject: [PATCH 7/8] file chnaged --- Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml b/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml index 6b998123..53e7d84b 100644 --- a/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml +++ b/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml @@ -12,6 +12,7 @@ on: [push] # Environment variables available to all jobs and steps in this workflow +#CHECK env: REGISTRY_NAME: my-registry-name CLUSTER_NAME: my-cluster-name From bcf6696de05e99f7c6c664f5f3ce5d1a426af72b Mon Sep 17 00:00:00 2001 From: Maloy Date: Mon, 3 Mar 2025 21:36:27 +0530 Subject: [PATCH 8/8] file chnaged --- Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml b/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml index 53e7d84b..f483e441 100644 --- a/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml +++ b/Kubernetes/build-and-deploy-docker-image-aks-using-manifests.yml @@ -13,6 +13,7 @@ on: [push] # Environment variables available to all jobs and steps in this workflow #CHECK + env: REGISTRY_NAME: my-registry-name CLUSTER_NAME: my-cluster-name