Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Set up CI with Azure Pipelines (#321)

Krzysztof Pajak5c1d6bcd2499
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 000000000..cd04d5a3b
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,38 @@
+# ASP.NET Core
+
+# Build and test ASP.NET Core projects targeting .NET Core.
+# Add steps that run tests, create a NuGet package, deploy, and more:
+# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
+
+trigger:
+- master
+
+pool:
+ vmImage: ubuntu-latest
+
+variables:
+ buildConfiguration: 'Release'
+
+steps:
+- task: NuGetCommand@2
+ inputs:
+ command: 'restore'
+ restoreSolution: '**/*.sln'
+ feedsToUse: 'select'
+ vstsFeed: 'ac9ef43d-5e52-40a8-a3ae-09d4d3dd8a78'
+
+- task: DotNetCoreCLI@2
+ inputs:
+ command: 'build'
+ projects: '**/Grand.Web.csproj'
+ arguments: '--configuration $(buildConfiguration)'
+ displayName: 'dotnet build $(buildConfiguration)'
+
+- task: Docker@2
+ inputs:
+ containerRegistry: 'DockerHub'
+ repository: 'grandnode/grandnode2'
+ command: 'buildAndPush'
+ tags: |
+ latest
+ Dockerfile: '**/Dockerfile'
\ No newline at end of file
diff --git a/global.json b/global.json
new file mode 100644
index 000000000..18b4598f7
--- /dev/null
+++ b/global.json
@@ -0,0 +1,6 @@
+{
+ "sdk": {
+ "version": "6.0.400",
+ "rollForward": "latestFeature"
+ }
+}