Skip to content

Commit

Permalink
Update Azure pipeline to .NET 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsingleton committed Dec 21, 2021
1 parent 7b4c430 commit 81b55bf
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,18 @@ stages:
vmImage: 'ubuntu-latest'
steps:
- task: UseDotNet@2
displayName: "Use .NET Core SDK 3.1.x"
displayName: "Use .NET 6.0 SDK"
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
inputs:
packageType: 'sdk'
version: '3.1.x'
- task: CmdLine@2
displayName: "Suppress welcome message"
inputs:
script: 'touch "$HOME"/.dotnet/"$(dotnet --version)".dotnetFirstUseSentinel'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: "Build Huxley 2"
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
inputs:
command: 'build'
projects: '**/*.csproj'
Expand All @@ -36,7 +32,7 @@ stages:
displayName: "Unit test Huxley 2"
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
inputs:
command: 'test'
projects: '**/*Tests/*.csproj'
Expand All @@ -49,7 +45,7 @@ stages:
displayName: "Publish Huxley 2 package"
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_NOLOGO: true
inputs:
command: 'publish'
publishWebProjects: true
Expand All @@ -69,6 +65,4 @@ stages:
appType: 'webAppLinux'
WebAppName: 'huxley2'
packageForLinux: '$(Build.ArtifactStagingDirectory)/**/Huxley2.zip'
RuntimeStack: 'DOTNETCORE|3.1'

# DOTNET_SKIP_FIRST_TIME_EXPERIENCE removed in Core 3 will return hopefully
RuntimeStack: 'DOTNETCORE|6.0'

0 comments on commit 81b55bf

Please sign in to comment.