Skip to content

Commit

Permalink
Add logic for container build to Matrix-Build-Job.yml (#199)
Browse files Browse the repository at this point in the history
## Description

Changes the matrix build job to be able to take input for the container
image used in the generic mu_devops file generated.

Will be used by: microsoft/mu_devops#59 

- [ ] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

Tested on test pipeline with mu_devops changes made locally

## Integration Instructions

N/A
  • Loading branch information
cfernald authored and kenlautner committed Oct 18, 2023
1 parent ee2c6bc commit 9d5777e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .azurepipelines/Matrix-Build-Job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ parameters:
displayName: Virtual Machine Image (e.g. windows-latest)
type: string
default: 'windows-latest'
- name: container_image
displayName: Container Image
type: string
default: ''

jobs:

Expand Down Expand Up @@ -65,10 +69,16 @@ jobs:
workspace:
clean: all

${{ if ne(parameters.container_image, '') }}:
container: ${{ parameters.container_image }}

pool:
vmImage: ${{ parameters.vm_image }}

steps:
- ${{ if and(ne(parameters.container_image, ''), not(contains(parameters.vm_image, 'windows'))) }}:
- script: echo "##vso[task.prependpath]/home/vsts_azpcontainer/.local/bin"
displayName: Add User Local Bin to Path
- template: Steps/PrGate.yml@mu_devops
parameters:
build_archs: ${{ parameters.arch_list }}
Expand All @@ -82,3 +92,4 @@ jobs:
extra_build_args: ${{ parameters.extra_build_args }}
extra_install_step: ${{ parameters.extra_install_step }}
tool_chain_tag: ${{ parameters.tool_chain_tag }}
install_tools: ${{ eq(parameters.container_image, '') }}

0 comments on commit 9d5777e

Please sign in to comment.