diff options
author | Oliver Steffen <osteffen@redhat.com> | 2023-01-16 18:40:33 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-01-17 19:06:32 +0000 |
commit | 36d7626a3732b6233686aa27e2d9813e59c3eb79 (patch) | |
tree | a71d08d380d91e1696457f60ecea070289d9e59d | |
parent | becff4f473e27ba0a0d8a40e0071531abdb67872 (diff) | |
download | edk2-36d7626a3732b6233686aa27e2d9813e59c3eb79.tar.gz edk2-36d7626a3732b6233686aa27e2d9813e59c3eb79.tar.bz2 edk2-36d7626a3732b6233686aa27e2d9813e59c3eb79.zip |
CI: Allow running in a container.
Add a parameter of the pr-gate-build-job template to specify a
container image URL. If the value is not '' (default), then the
jobs will be run inside a container based on that image.
Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Chris Fernald <chfernal@microsoft.com>
-rw-r--r-- | .azurepipelines/templates/pr-gate-build-job.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.azurepipelines/templates/pr-gate-build-job.yml b/.azurepipelines/templates/pr-gate-build-job.yml index b8573b90da..3999bb1668 100644 --- a/.azurepipelines/templates/pr-gate-build-job.yml +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -14,6 +14,7 @@ parameters: arch_list: ''
extra_install_step: []
usePythonVersion: ''
+ container: ''
# Build step
jobs:
@@ -72,6 +73,9 @@ jobs: pool:
vmImage: ${{ parameters.vm_image }}
+ ${{ if not(eq(parameters.container, '')) }}:
+ container: ${{ parameters.container }}
+
steps:
- template: pr-gate-steps.yml
parameters:
|