diff --git a/docs/config.yaml b/docs/config.yaml index 45bb3e8e7..4b1e04029 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -64,6 +64,9 @@ streams: type: production # OPTIONAL: override cosa image to use for this stream cosa_image: "quay.io/jlebon/coreos-assembler:stable" + # OPTIONAL: Whether to skip cloud image generation and upload. This is + # equivalent to listing all cloud platforms in `skip_artifacts`. + skip_cloud_images: true # OPTIONAL: skip some of the default artifacts for this stream skip_artifacts: aarch64: diff --git a/utils.groovy b/utils.groovy index 7d6923665..25dde2f26 100644 --- a/utils.groovy +++ b/utils.groovy @@ -355,6 +355,13 @@ def get_artifacts_to_build(pipecfg, stream, basearch) { artifacts -= pipecfg.streams[stream].skip_artifacts?.all ?: [] artifacts -= pipecfg.streams[stream].skip_artifacts?."${basearch}" ?: [] } + if (pipecfg.streams[stream].skip_cloud_images) { + // Only keep containers and live artifacts. Note that the ostree + // container and QEMU image are always built and not skippable + // artifacts. + artifacts = artifacts.intersect(["extensions-container", "legacy-oscontainer", + "live", "metal", "metal4k"]) + } return artifacts.unique() }