diff --git a/.github/workflows/master_ntmsapp1.yml b/.github/workflows/master_ntmsapp1.yml new file mode 100644 index 0000000..3a0ce6a --- /dev/null +++ b/.github/workflows/master_ntmsapp1.yml @@ -0,0 +1,57 @@ +# 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 ASP app to Azure Web App - ntmsapp1 + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: 'windows-latest' + + steps: + - uses: actions/checkout@v2 + + - name: Setup MSBuild path + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.5 + + - name: Restore NuGet packages + run: nuget restore + + - name: Publish to folder + run: msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\" + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: ASP-app + path: '/published/**' + + deploy: + runs-on: 'windows-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: ASP-app + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'ntmsapp1' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_d3e6d0e9799c4fc3a3aed4a0309cb36c }} + package: . \ No newline at end of file diff --git a/.github/workflows/master_ntmsrgwebspp.yml b/.github/workflows/master_ntmsrgwebspp.yml new file mode 100644 index 0000000..f05405a --- /dev/null +++ b/.github/workflows/master_ntmsrgwebspp.yml @@ -0,0 +1,65 @@ +# 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 ASP.Net Core app to Azure Web App - ntmsrgwebspp + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + permissions: + contents: read #This is required for actions/checkout + + steps: + - uses: actions/checkout@v4 + + - name: Set up .NET Core + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.x' + + - name: Build with dotnet + run: dotnet build --configuration Release + + - name: dotnet publish + run: dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/myapp" + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v4 + with: + name: .net-app + path: ${{env.DOTNET_ROOT}}/myapp + + deploy: + runs-on: windows-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: .net-app + + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_01B60186335A4BE099007E6983625622 }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_02AC62A9D04640CAA2FD23E4B3DB4DAB }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_CD250659E98A4741BF037146385F2C9E }} + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v3 + with: + app-name: 'ntmsrgwebspp' + slot-name: 'Production' + package: . + \ No newline at end of file diff --git a/.github/workflows/master_shaktiapp2.yml b/.github/workflows/master_shaktiapp2.yml new file mode 100644 index 0000000..3adfc8f --- /dev/null +++ b/.github/workflows/master_shaktiapp2.yml @@ -0,0 +1,57 @@ +# 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 ASP app to Azure Web App - shaktiapp2 + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: 'windows-latest' + + steps: + - uses: actions/checkout@v2 + + - name: Setup MSBuild path + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.0.5 + + - name: Restore NuGet packages + run: nuget restore + + - name: Publish to folder + run: msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\" + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: ASP-app + path: '/published/**' + + deploy: + runs-on: 'windows-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: ASP-app + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'shaktiapp2' + slot-name: 'production' + publish-profile: ${{ secrets.AzureAppService_PublishProfile_5e262f6564f64a94866dadd55ef71a5a }} + package: . \ No newline at end of file diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml index 6f34e44..fb6a4ca 100644 --- a/Views/Home/Index.cshtml +++ b/Views/Home/Index.cshtml @@ -3,6 +3,6 @@ }
-

NTMS Azure Batch Sample web App1 Sunday April

+

NTMS Azure Batch Sample web App1 Page May 2022 April

NTMS
diff --git a/Web.config b/Web.config index d0470fb..5af86a8 100644 --- a/Web.config +++ b/Web.config @@ -10,7 +10,7 @@ - +