Skip to content

Commit

Permalink
KX-11751 - Containerization (#7)
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 92e5de0 commit f66a538
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 Down Expand Up @@ -61,12 +72,6 @@ stages:
inputs:
version: $(PACKAGE_JSON_NODE_VERSION)

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

- task: DotNetCoreCLI@2
displayName: Restore dotnet tools
inputs:
Expand Down Expand Up @@ -105,6 +110,8 @@ stages:
arguments: --no-restore --verbosity Detailed
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 @@ -135,6 +142,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 f66a538

Please sign in to comment.