1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

build-args: add STREAM argument for image labeling

Add a new build argument `STREAM` to include the `fedora-coreos.stream` label
directly in images built with `buildah`. Previously, this label was added via
a temporary workaround in `cmd-build-with-buildah`. With rpm-ostree now able
to set labels through the `build-chunked-oci` command, we can remove that hack
and set the label cleanly at build time.

See: https://github.com/coreos/coreos-assembler/issues/4337
This commit is contained in:
Roshan-R
2025-11-04 11:00:52 +05:30
committed by Joel Capitao
parent 6c8b81658a
commit 8b239e6e0c
2 changed files with 4 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ FROM ${BUILDER_IMG} as builder
ARG VERSION=overridden
ARG MANIFEST=overridden
ARG STREAM=overridden
# XXX: see inject_passwd_group() in build-rootfs
ARG PASSWD_GROUP_DIR
ARG STRICT_MODE=0
@@ -46,7 +47,8 @@ RUN --mount=type=bind,target=/run/src,rw \
rpm-ostree experimental compose build-chunked-oci \
--bootc --format-version=1 --rootfs /target-rootfs \
--output oci-archive:/run/src/out.ociarchive \
--label com.coreos.inputhash=$(cat /run/inputhash)
--label com.coreos.inputhash=$(cat /run/inputhash) \
--label fedora-coreos.stream=$STREAM
FROM oci-archive:./out.ociarchive
ARG VERSION

View File

@@ -8,4 +8,5 @@ MANIFEST=manifest.yaml
# XXX: see inject_passwd_group() in build-rootfs
PASSWD_GROUP_DIR=manifests
NAME=fedora-coreos
STREAM=testing-devel
DESCRIPTION=Fedora CoreOS testing-devel