mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
cirrus: Do not run tasks for builds on cron triggered jobs
...at least not right now. The outcome should not be different compared to running for master/release upon merge, anyway.
This commit is contained in:
parent
4ffcbc7710
commit
c9bc187791
1 changed files with 5 additions and 0 deletions
|
@ -53,10 +53,12 @@ sanitizers_resource_template: &SANITIZERS_RESOURCE_TEMPLATE
|
||||||
|
|
||||||
builds_only_if_template: &BUILDS_ONLY_IF_TEMPLATE
|
builds_only_if_template: &BUILDS_ONLY_IF_TEMPLATE
|
||||||
# Rules for skipping builds:
|
# Rules for skipping builds:
|
||||||
|
# - Do not run builds for anything that's cron triggered
|
||||||
# - Don't do darwin builds on zeek-security repo because they use up a ton of compute credits.
|
# - Don't do darwin builds on zeek-security repo because they use up a ton of compute credits.
|
||||||
# - Always build PRs, but not if they come from dependabot
|
# - Always build PRs, but not if they come from dependabot
|
||||||
# - Always build master and release/* builds from the main repo
|
# - Always build master and release/* builds from the main repo
|
||||||
only_if: >
|
only_if: >
|
||||||
|
( $CIRRUS_CRON == '' ) &&
|
||||||
( $CIRRUS_REPO_NAME != 'zeek-security' || $CIRRUS_OS != "darwin" ) &&
|
( $CIRRUS_REPO_NAME != 'zeek-security' || $CIRRUS_OS != "darwin" ) &&
|
||||||
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
||||||
( $CIRRUS_REPO_NAME == 'zeek' &&
|
( $CIRRUS_REPO_NAME == 'zeek' &&
|
||||||
|
@ -423,6 +425,7 @@ docker_build_template: &DOCKER_BUILD_TEMPLATE
|
||||||
memory: *MEMORY
|
memory: *MEMORY
|
||||||
set_image_tag_script: echo "IMAGE_TAG=zeek/zeek-multiarch:${CIRRUS_ARCH}" >> $CIRRUS_ENV
|
set_image_tag_script: echo "IMAGE_TAG=zeek/zeek-multiarch:${CIRRUS_ARCH}" >> $CIRRUS_ENV
|
||||||
only_if: >
|
only_if: >
|
||||||
|
( $CIRRUS_CRON == '' ) &&
|
||||||
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
||||||
$CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ 'release/.*' || $CIRRUS_TAG != '' )
|
$CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ 'release/.*' || $CIRRUS_TAG != '' )
|
||||||
|
|
||||||
|
@ -490,6 +493,7 @@ container_image_manifest_docker_builder:
|
||||||
cpu: 1
|
cpu: 1
|
||||||
# Push master builds to zeek/zeek-dev, or tagged release branches to zeek/zeek
|
# Push master builds to zeek/zeek-dev, or tagged release branches to zeek/zeek
|
||||||
only_if: >
|
only_if: >
|
||||||
|
( $CIRRUS_CRON == '' ) &&
|
||||||
( $CIRRUS_REPO_FULL_NAME == 'zeek/zeek' &&
|
( $CIRRUS_REPO_FULL_NAME == 'zeek/zeek' &&
|
||||||
( $CIRRUS_BRANCH == 'master' ||
|
( $CIRRUS_BRANCH == 'master' ||
|
||||||
$CIRRUS_TAG =~ 'v[0-9]+\.[0-9]+\.[0-9]+$' ) )
|
$CIRRUS_TAG =~ 'v[0-9]+\.[0-9]+\.[0-9]+$' ) )
|
||||||
|
@ -594,6 +598,7 @@ cluster_testing_docker_builder:
|
||||||
cpu: *CPUS
|
cpu: *CPUS
|
||||||
memory: *MEMORY
|
memory: *MEMORY
|
||||||
only_if: >
|
only_if: >
|
||||||
|
( $CIRRUS_CRON == '' ) &&
|
||||||
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
( ( $CIRRUS_PR != '' && $CIRRUS_BRANCH !=~ 'dependabot/.*' ) ||
|
||||||
$CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ 'release/.*' || $CIRRUS_TAG != '' )
|
$CIRRUS_BRANCH == 'master' || $CIRRUS_BRANCH =~ 'release/.*' || $CIRRUS_TAG != '' )
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue