Merge pull request #23768 from Luap99/cirrus-rhel-machine

cirrus: skip windows/macos machine task on RHEL branches
This commit is contained in:
openshift-merge-bot[bot]
2024-08-28 12:52:49 +00:00
committed by GitHub

View File

@ -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