4 Commits

Author SHA1 Message Date
Akihiro Suda
5755b22bcb
CI: release: enable reproducible builds
The binaries are now bit-for-bit reproducible (<https://reproducible-builds.org/>):
```bash
docker buildx build \
   -o /tmp/fuse-overlayfs-builds \
   --build-arg SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \
   --platform=amd64,arm64,arm,s390x,ppc64le,riscv64 \
   -f Containerfile.cross .
```

This ensures that the binaries are not built from any unpublished source.

- Implementation is similar to <https://github.com/rootless-containers/slirp4netns/compare/v1.2.1...v1.2.2>
- `/etc/apt/sources.list` is modified to use <http://snapshot.ubuntu.com> using
  <https://github.com/reproducible-containers/repro-sources-list.sh>.
- As <http://snapshot.ubuntu.com> is slow, `/var/cache/apt` is cached on GHA using
  <https://github.com/reproducible-containers/buildkit-cache-dance>.
- For testing sake, `.github/workflows/release.yaml` is now executed for every push events.
  The release artifacts are published only on a push event with a `v*` tag.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-09-14 05:48:00 +09:00
Akihiro Suda
c2751bd5ff
Containerfile.cross: refactor + support riscv64
- Switch away from tonistiigi/binfmt/cross.sh to tonistiigi/xx .
  cross.sh was removed in tonistiigi/binfmt@99c76af6 .

- Remove dependency on QEMU user mode emulation

- Switch away from debian:10 to ubuntu:22.04, for supporting riscv64

- Clean up unneeded deps

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-01 02:20:52 +09:00
Giuseppe Scrivano
3548168535
Containerfile.cross: install go-md2man
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-10-09 09:39:46 +02:00
Giuseppe Scrivano
a65b310508
build: rename Dockerfile to Containerfile
since these files need the -v option that is not present with Docker,
rename the files to Containerfile to avoid confusion.

more info: https://twitter.com/cpuguy83/status/1313523894536429568

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-10-06 19:22:49 +02:00