2025-08-06 13:24:25 -04:00
|
|
|
FROM alpine:latest as tarball
|
2025-11-19 06:56:23 -06:00
|
|
|
|
2025-05-08 00:00:53 -05:00
|
|
|
COPY install-build-pkgs /tmp/
|
|
|
|
|
RUN /tmp/install-build-pkgs
|
2025-11-19 06:56:23 -06:00
|
|
|
|
|
|
|
|
ARG BUILD_TIMESTAMP=0
|
build: make the release driver and Debian changelogs dependable
- The container release driver wrote rv=fail but returned success to
CI. Run every selected target, keep its report line, and exit
nonzero if any target fails or its builder can't run. A missing
podman during --cleanup is reported per target instead of aborting
the run. Reject a target name that matches no containerfile.
- --branch silently defaulted to master, and the tarball containerfile
did too, so a release could package a moving branch instead of the
intended tag. Require --branch and --git-repo for direct calls.
- Remove the static installer target. Its makeself command printed
"foo", and it copied whatever static archives the output directory
held, possibly from an older release or missing one built later in
the same run. The static archives themselves are unchanged.
- git2debcl enumerated every tag and used symmetric differences, so a
private tag could become a package version and commits from another
branch could be listed. Take release and release-candidate tags
reachable from the requested revision, ordered by version with each
final after its candidates, with one-sided ranges between ancestor
boundaries. Keep the requested version when tags share a revision or
a range is empty. A tagless snapshot gets 0~git.<count>.<hash>; a
shallow tagless checkout must give --version.
- Debian versions for candidates are printed as 2.42.0~~rc1, so dpkg
orders them below the 2.42.0 final. The raw -rc1 form sorted above
it, making the final release look like a downgrade.
- TEST_release_metadata covers the driver's results and arguments,
sibling and merged histories, non-release tags, candidates,
tagless and shallow checkouts, and dpkg version ordering.
- Document the static and release targets and the driver's arguments.
2026-11-25 13:36:10 -05:00
|
|
|
ARG BRANCH
|
2025-11-19 06:56:23 -06:00
|
|
|
ARG GIT_REPO
|
|
|
|
|
|
|
|
|
|
RUN git clone --single-branch "${GIT_REPO}" /tmp/mergerfs --branch="${BRANCH}"
|
2025-05-08 00:00:53 -05:00
|
|
|
RUN cd /tmp/mergerfs && make version tarball
|
2025-11-19 06:56:23 -06:00
|
|
|
|
2025-05-08 00:00:53 -05:00
|
|
|
RUN mkdir /build
|
|
|
|
|
RUN cp -v /tmp/mergerfs/*.tar.gz /build/
|
|
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
|
COPY --from=tarball /build/ /
|