Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: config: add streams[].skip_cloud_images #810

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we include hashlist-experimental here?

}
return artifacts.unique()
}

Expand Down