From 8d1f2da27cecc3fd74b4b1a7d7677ec101950368 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Wed, 24 Mar 2021 14:19:56 -0400
Subject: [PATCH 01/13] Add or update the App Service deployment workflow
configuration from Azure Portal.
---
.github/workflows/master_suji123.yml | 56 ++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 .github/workflows/master_suji123.yml
diff --git a/.github/workflows/master_suji123.yml b/.github/workflows/master_suji123.yml
new file mode 100644
index 0000000..322aa75
--- /dev/null
+++ b/.github/workflows/master_suji123.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 ASP.Net Core app to Azure Web App - suji123
+
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.1.301'
+
+ - 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@v2
+ with:
+ name: .net-app
+ path: ${{env.DOTNET_ROOT}}/myapp
+
+ 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: .net-app
+
+ - name: Deploy to Azure Web App
+ id: deploy-to-webapp
+ uses: azure/webapps-deploy@v2
+ with:
+ app-name: 'suji123'
+ slot-name: 'production'
+ publish-profile: ${{ secrets.AzureAppService_PublishProfile_a0931e60f2614faaa4cc3621d1d6643d }}
+ package: .
\ No newline at end of file
From 1ecf8d499b42ddbedd38b83a696808fa598fa029 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Wed, 24 Mar 2021 14:20:57 -0400
Subject: [PATCH 02/13] Update dotnet-core-hello-world.csproj
---
dotnet-core-hello-world.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dotnet-core-hello-world.csproj b/dotnet-core-hello-world.csproj
index ec593e0..ed2505a 100755
--- a/dotnet-core-hello-world.csproj
+++ b/dotnet-core-hello-world.csproj
@@ -3,7 +3,7 @@
netcoreapp2.1
portable
- dotnet-core-hello-world
+ dotnet-core-Hello-World
Exe
dotnet-core-hello-world
From af01e16930b2dd22c4242e9c7c11f6154630cf76 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Wed, 24 Mar 2021 17:13:39 -0400
Subject: [PATCH 03/13] Set up CI with Azure Pipelines
[skip ci]
---
azure-pipelines.yml | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 azure-pipelines.yml
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000..6a9684e
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,33 @@
+# .NET Desktop
+# Build and run tests for .NET Desktop or Windows classic desktop solutions.
+# Add steps that publish symbols, save build artifacts, and more:
+# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
+
+trigger:
+- master
+
+pool:
+ vmImage: 'windows-latest'
+
+variables:
+ solution: '**/*.sln'
+ buildPlatform: 'Any CPU'
+ buildConfiguration: 'Release'
+
+steps:
+- task: NuGetToolInstaller@1
+
+- task: NuGetCommand@2
+ inputs:
+ restoreSolution: '$(solution)'
+
+- task: VSBuild@1
+ inputs:
+ solution: '$(solution)'
+ platform: '$(buildPlatform)'
+ configuration: '$(buildConfiguration)'
+
+- task: VSTest@2
+ inputs:
+ platform: '$(buildPlatform)'
+ configuration: '$(buildConfiguration)'
From 6de3dd7df74e1375502ff9a658a1348de613eec5 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Wed, 24 Mar 2021 17:35:04 -0400
Subject: [PATCH 04/13] Create README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 README.md
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..0e6bf97
--- /dev/null
+++ b/README.md
@@ -0,0 +1,2 @@
+[](https://dev.azure.com/mgovardhankumar/testpipeline/_build/latest?definitionId=3&branchName=master)
+#dotnet-core-hello-world
From 8b31e22786a64032f29ea666be643b3d077f90b8 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 12:05:38 -0400
Subject: [PATCH 05/13] Add or update the App Service deployment workflow
configuration from Azure Portal.
---
.github/workflows/master_inlineapp.yml | 56 ++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 .github/workflows/master_inlineapp.yml
diff --git a/.github/workflows/master_inlineapp.yml b/.github/workflows/master_inlineapp.yml
new file mode 100644
index 0000000..2fa8877
--- /dev/null
+++ b/.github/workflows/master_inlineapp.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 ASP.Net Core app to Azure Web App - inlineapp
+
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.1.301'
+
+ - 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@v2
+ with:
+ name: .net-app
+ path: ${{env.DOTNET_ROOT}}/myapp
+
+ 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: .net-app
+
+ - name: Deploy to Azure Web App
+ id: deploy-to-webapp
+ uses: azure/webapps-deploy@v2
+ with:
+ app-name: 'inlineapp'
+ slot-name: 'production'
+ publish-profile: ${{ secrets.AzureAppService_PublishProfile_9abd6db1549b43a085580957b2694006 }}
+ package: .
\ No newline at end of file
From e1237e75c7f442c7eef2b79bdcd9790735d6c293 Mon Sep 17 00:00:00 2001
From: Azure App Service
Date: Thu, 25 Mar 2021 12:11:46 -0400
Subject: [PATCH 06/13] Remove the App Service deployment workflow
configuration from Azure Portal.
---
.github/workflows/master_inlineapp.yml | 56 --------------------------
1 file changed, 56 deletions(-)
delete mode 100644 .github/workflows/master_inlineapp.yml
diff --git a/.github/workflows/master_inlineapp.yml b/.github/workflows/master_inlineapp.yml
deleted file mode 100644
index 2fa8877..0000000
--- a/.github/workflows/master_inlineapp.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 ASP.Net Core app to Azure Web App - inlineapp
-
-on:
- push:
- branches:
- - master
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: windows-latest
-
- steps:
- - uses: actions/checkout@v2
-
- - name: Set up .NET Core
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '3.1.301'
-
- - 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@v2
- with:
- name: .net-app
- path: ${{env.DOTNET_ROOT}}/myapp
-
- 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: .net-app
-
- - name: Deploy to Azure Web App
- id: deploy-to-webapp
- uses: azure/webapps-deploy@v2
- with:
- app-name: 'inlineapp'
- slot-name: 'production'
- publish-profile: ${{ secrets.AzureAppService_PublishProfile_9abd6db1549b43a085580957b2694006 }}
- package: .
\ No newline at end of file
From 7f6acee962a0a51f69a641e8b44d22411802554b Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 12:12:58 -0400
Subject: [PATCH 07/13] Add or update the App Service deployment workflow
configuration from Azure Portal.
---
.github/workflows/master_inlineapp.yml | 56 ++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 .github/workflows/master_inlineapp.yml
diff --git a/.github/workflows/master_inlineapp.yml b/.github/workflows/master_inlineapp.yml
new file mode 100644
index 0000000..3863acf
--- /dev/null
+++ b/.github/workflows/master_inlineapp.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 ASP.Net Core app to Azure Web App - inlineapp
+
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.1.301'
+
+ - 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@v2
+ with:
+ name: .net-app
+ path: ${{env.DOTNET_ROOT}}/myapp
+
+ 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: .net-app
+
+ - name: Deploy to Azure Web App
+ id: deploy-to-webapp
+ uses: azure/webapps-deploy@v2
+ with:
+ app-name: 'inlineapp'
+ slot-name: 'production'
+ publish-profile: ${{ secrets.AzureAppService_PublishProfile_c38e2d3576f04e198b2bcb71ce5907ed }}
+ package: .
\ No newline at end of file
From 1b8e8b52a6b768a7c3e3e215c0ae70845c38c5c9 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 12:14:20 -0400
Subject: [PATCH 08/13] Update Startup.cs
---
Startup.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Startup.cs b/Startup.cs
index e1725e1..f22a4b8 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -10,7 +10,7 @@ public void Configure(IApplicationBuilder app)
{
app.Run(context =>
{
- return context.Response.WriteAsync("Hello World!");
+ return context.Response.WriteAsync("Hello World..123!");
});
}
}
From a190eb77cad7e4f42c2eaf2d660c504fbb79d159 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 12:41:52 -0400
Subject: [PATCH 09/13] rebuildedapp
---
Startup.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Startup.cs b/Startup.cs
index f22a4b8..a10c713 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -10,7 +10,7 @@ public void Configure(IApplicationBuilder app)
{
app.Run(context =>
{
- return context.Response.WriteAsync("Hello World..123!");
+ return context.Response.WriteAsync("Hello World..123!-Rebuilded App");
});
}
}
From 7596232a7bf2d1c6291d1774efdc67c5ef01961b Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 12:48:10 -0400
Subject: [PATCH 10/13] Upgraded App
---
Startup.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Startup.cs b/Startup.cs
index a10c713..e670f64 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -10,7 +10,7 @@ public void Configure(IApplicationBuilder app)
{
app.Run(context =>
{
- return context.Response.WriteAsync("Hello World..123!-Rebuilded App");
+ return context.Response.WriteAsync("New Upgraded App");
});
}
}
From fbfb5a87591a478258fd0d2a62653c49f732730e Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 12:53:47 -0400
Subject: [PATCH 11/13] V3 Upgrade
---
Startup.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Startup.cs b/Startup.cs
index e670f64..b0d2754 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -10,7 +10,7 @@ public void Configure(IApplicationBuilder app)
{
app.Run(context =>
{
- return context.Response.WriteAsync("New Upgraded App");
+ return context.Response.WriteAsync("V3 Upgraded");
});
}
}
From 1f3437de66ff6c4c48851d4067a2b6bf5a00f413 Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 15:46:53 -0400
Subject: [PATCH 12/13] Add or update the App Service deployment workflow
configuration from Azure Portal.
---
.../workflows/master_testapphelloworld.yml | 56 +++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 .github/workflows/master_testapphelloworld.yml
diff --git a/.github/workflows/master_testapphelloworld.yml b/.github/workflows/master_testapphelloworld.yml
new file mode 100644
index 0000000..cd756d1
--- /dev/null
+++ b/.github/workflows/master_testapphelloworld.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 ASP.Net Core app to Azure Web App - testapphelloworld
+
+on:
+ push:
+ branches:
+ - master
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: windows-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: '3.1.301'
+
+ - 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@v2
+ with:
+ name: .net-app
+ path: ${{env.DOTNET_ROOT}}/myapp
+
+ 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: .net-app
+
+ - name: Deploy to Azure Web App
+ id: deploy-to-webapp
+ uses: azure/webapps-deploy@v2
+ with:
+ app-name: 'testapphelloworld'
+ slot-name: 'production'
+ publish-profile: ${{ secrets.AzureAppService_PublishProfile_2a243567dc414dba9ac9c1aaaa01b44a }}
+ package: .
\ No newline at end of file
From 381915643f8d93f381551be4dcc2d33db5eb1c8d Mon Sep 17 00:00:00 2001
From: SujithaGM <75918291+SujithaGM@users.noreply.github.com>
Date: Thu, 25 Mar 2021 15:51:37 -0400
Subject: [PATCH 13/13] Update Startup.cs
---
Startup.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Startup.cs b/Startup.cs
index b0d2754..fd41b58 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -10,7 +10,7 @@ public void Configure(IApplicationBuilder app)
{
app.Run(context =>
{
- return context.Response.WriteAsync("V3 Upgraded");
+ return context.Response.WriteAsync("Hello Worlds, happy Thursday!");
});
}
}