mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Merge pull request #23768 from Luap99/cirrus-rhel-machine
cirrus: skip windows/macos machine task on RHEL branches
This commit is contained in:
18
.cirrus.yml
18
.cirrus.yml
@ -439,10 +439,7 @@ win_installer_task:
|
|||||||
- env:
|
- env:
|
||||||
CONTAINERS_MACHINE_PROVIDER: 'hyperv'
|
CONTAINERS_MACHINE_PROVIDER: 'hyperv'
|
||||||
alias: win_installer
|
alias: win_installer
|
||||||
only_if: # RHEL never releases podman windows installer binary
|
only_if: *no_rhel_release
|
||||||
$CIRRUS_TAG == '' &&
|
|
||||||
$CIRRUS_BRANCH !=~ 'v[0-9\.]+-rhel' &&
|
|
||||||
$CIRRUS_BASE_BRANCH !=~ 'v[0-9\.]+-rhel'
|
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
ec2_instance: &windows
|
ec2_instance: &windows
|
||||||
image: "${WINDOWS_AMI}"
|
image: "${WINDOWS_AMI}"
|
||||||
@ -762,6 +759,14 @@ podman_machine_windows_task:
|
|||||||
alias: podman_machine_windows
|
alias: podman_machine_windows
|
||||||
# Docs: ./contrib/cirrus/CIModes.md
|
# Docs: ./contrib/cirrus/CIModes.md
|
||||||
only_if: *only_if_machine_test
|
only_if: *only_if_machine_test
|
||||||
|
# Special case, we do not run macos/windows builds on rhel branches.
|
||||||
|
# Thus the machine task should not be run too, while we use only_if
|
||||||
|
# everywhere to do so here it would mean we would need duplicate the
|
||||||
|
# full big only_if condition which is more difficult to maintain so
|
||||||
|
# use the skip here.
|
||||||
|
skip: &skip_rhel_release |
|
||||||
|
$CIRRUS_BRANCH =~ 'v[0-9\.]+-rhel' ||
|
||||||
|
$CIRRUS_BASE_BRANCH =~ 'v[0-9\.]+-rhel'
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
ec2_instance:
|
ec2_instance:
|
||||||
<<: *windows
|
<<: *windows
|
||||||
@ -786,6 +791,7 @@ podman_machine_mac_task:
|
|||||||
name: *std_name_fmt
|
name: *std_name_fmt
|
||||||
alias: podman_machine_mac
|
alias: podman_machine_mac
|
||||||
only_if: *only_if_machine_test
|
only_if: *only_if_machine_test
|
||||||
|
skip: *skip_rhel_release
|
||||||
depends_on: *build
|
depends_on: *build
|
||||||
persistent_worker: *mac_pw
|
persistent_worker: *mac_pw
|
||||||
env:
|
env:
|
||||||
@ -1092,9 +1098,7 @@ artifacts_task:
|
|||||||
name: "Artifacts"
|
name: "Artifacts"
|
||||||
alias: artifacts
|
alias: artifacts
|
||||||
# Docs: ./contrib/cirrus/CIModes.md
|
# Docs: ./contrib/cirrus/CIModes.md
|
||||||
only_if: >-
|
only_if: *no_rhel_release
|
||||||
$CIRRUS_BRANCH !=~ 'v[0-9\.]+-rhel' &&
|
|
||||||
$CIRRUS_BASE_BRANCH !=~ 'v[0-9\.]+-rhel'
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- success
|
- success
|
||||||
# This task is a secondary/convenience for downstream consumers, don't
|
# This task is a secondary/convenience for downstream consumers, don't
|
||||||
|
|||||||
Reference in New Issue
Block a user