Skip to content

Commit

Permalink
KX-11751 - Containerization (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Zdenek Strach <[email protected]>
  • Loading branch information
ZdenekS81 and Zdenek Strach authored Mar 12, 2024
1 parent c000a9d commit cf2c8c1
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .azuredevops/pipelines/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,23 @@ parameters:
- name: AgentPoolName
displayName: Agent pool name
type: string
default: Default
default: ADO Windows Server 2022

- name: AgentName
displayName: Agent name - single char for any
type: string
default: " "

resources:
repositories:
- repository: self
type: git

containers:
- container: Windows
image: base/mcr-dotnet-sdk-8.0-servercore-ltsc2022:release
endpoint: xperienceagentshub.azurecr.io

variables:
- name: SIGN_FILE
value: true
Expand All @@ -29,6 +39,7 @@ stages:
${{ if ne(length(parameters.AgentName), 1) }}:
demands:
- Agent.Name -equals ${{ parameters.AgentName }}
container: Windows

variables:
- group: Code Sign KV Auth
Expand All @@ -43,12 +54,6 @@ stages:
value: src/Kentico.Xperience.UMT/Kentico.Xperience.UMT.csproj

steps:
- task: UseDotNet@2
displayName: Select dotnet version
inputs:
packageType: sdk
useGlobalJson: true

- task: DotNetCoreCLI@2
displayName: Restore dotnet tools
inputs:
Expand All @@ -74,6 +79,8 @@ stages:
arguments: --no-restore
env:
AuthenticodeClientSecret: $(AuthenticodeClientSecret)
# Roll-forward behavior set for AzureSignTool dotnet tool (see .config\dotnet-tools.json) which requires .Net 6.0 runtime
DOTNET_ROLL_FORWARD: Major

- task: DotNetCoreCLI@2
displayName: Create NuGet package
Expand Down Expand Up @@ -104,6 +111,7 @@ stages:
${{ if ne(length(parameters.AgentName), 1) }}:
demands:
- Agent.Name -equals ${{ parameters.AgentName }}
container: Windows

environment: integrations-release-nuget
workspace:
Expand Down

0 comments on commit cf2c8c1

Please sign in to comment.