Skip to content

Commit 44cac55

Browse files
authored
Jobs/PrGate.yml: Add Linux container option parameter (#155)
Allows the caller to specify options passed to the Linux container. See the following article for more information about `options:`. https://learn.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops#options
1 parent d7dda71 commit 44cac55

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Jobs/PrGate.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ parameters:
4848
displayName: Linux Container Image
4949
type: string
5050
default: ''
51+
- name: linux_container_options
52+
displayName: Linux Container Options
53+
type: string
54+
default: ''
5155
- name: packages
5256
displayName: Packages
5357
type: string
@@ -89,7 +93,9 @@ jobs:
8993

9094
# Use a container if one was specified.
9195
${{ if and(eq(parameters.container_build, true), not(contains(parameters.vm_image, 'windows'))) }}:
92-
container: ${{ parameters.linux_container_image }}
96+
container:
97+
image: ${{ parameters.linux_container_image }}
98+
options: ${{ parameters.linux_container_options }}
9399

94100
steps:
95101
# Add local path to ensure pip install modules are discoverable.

0 commit comments

Comments
 (0)