Files
gentoo-zh/.github/stage3/Dockerfile
T
Zakk d2a85360de .github: run CI in a stage3 image updated daily
gentoo/stage3 is rebuilt weekly, but the tree drops old versions within
days, and emerge cannot rebuild an installed package the tree no longer
has. #14578 failed on such a slot conflict: the desktop images carry
kwindowsystem-6.27, bound to qtbase 6.11.1, and the tree starts at 6.29.

stage3.yml updates every installed package of each profile from the
binhost daily and pushes ghcr.io/<owner>/stage3:<profile>; a failed build
keeps the previous image. emerge-on-pr and tatt run in it, and
autobump-env builds on the amd64-desktop-openrc one.

needs-perl-update.sh only covered the same lag for perl, so it goes.
2026-10-11 00:50:45 +11:00

15 lines
578 B
Docker

ARG PROFILE
FROM gentoo/stage3:${PROFILE} AS update
# stage3 has no world file: @world covers only @system, and depclean would drop the rest
RUN emerge-webrsync --no-pgp-verify \
&& getuto \
&& FEATURES="getbinpkg" emerge --quiet --update --deep --newuse --with-bdeps=y @installed \
&& FEATURES="getbinpkg" emerge --quiet @preserved-rebuild \
&& rm -rf /var/db/repos/gentoo /var/cache/distfiles/* /var/cache/binpkgs/*
# one layer, as gentoo/stage3 itself is built: the update layer would duplicate every replaced file
FROM scratch
COPY --from=update / /
CMD ["/bin/bash"]