ci: rework build
Some checks failed
Build containers / Build and push image (asahi-cosmic, 43) (push) Failing after 38s

This commit is contained in:
2026-02-22 15:37:25 +01:00
parent 71ccffc6a3
commit a8f8908184
2 changed files with 26 additions and 3 deletions

24
Containerfile Normal file
View File

@@ -0,0 +1,24 @@
ARG IMAGE=base
ARG VERSION=44
FROM quay.io/fedora/fedora:${VERSION} as builder
#Install deps and the latest rpm-ostree
RUN dnf -y install rpm-ostree selinux-policy-targeted python3 && dnf upgrade -y --enablerepo=updates-testing --refresh rpm-ostree
#Copy all files into the container and set permissions
COPY . /src
RUN chmod -R a=rX,u+w /src
WORKDIR /src
#Build the wanted image and version
RUN ./builder.sh ${IMAGE} ${VERSION}
# Create the container and set the labels
FROM scratch
COPY --from=builder /src/images/${IMAGE}/manifest.ociarchive /
LABEL containers.bootc 1
ENV container=oci
# Make systemd the default
STOPSIGNAL SIGRTMIN+3
CMD ["/sbin/init"]

View File

@@ -62,7 +62,6 @@ else
echo "No postprocess.sh found in ${IMAGE_DIR}, skipping."
fi
# --- COMPOSE IMAGE ---
ARGS=(
"--cachedir=cache"
@@ -70,7 +69,7 @@ ARGS=(
"--max-layers=96"
)
rpm-ostree compose image \
rpm-ostree compose rootfs \
"${ARGS[@]}" \
"$MANIFEST" \
"$OUTPUT"
"$OUTPUT"