website/Makefile

45 lines
814 B
Makefile
Raw Normal View History

.PHONY: clean
clean:
rm -r _site
2023-01-24 20:51:59 +00:00
.PHONY: serve
serve: build
docker run --rm -p 8080:8080/tcp -it distrust/website
.PHONY: build
build: out/website.oci.tar
config/apt-packages.list \
config/apt-hashes.list \
config/apt-sources.list \
fetch/apt/Packages.bz2:
buildah build \
-f Dockerfile \
-t distrust/website \
--timestamp 1 \
--format oci \
--arch amd64 \
--output cache/reproduce
cp cache/reproduce/apt-packages/* fetch/apt/
cp cache/reproduce/apt-*.list config
out/website.oci.tar:
buildah build \
-f Dockerfile \
-t distrust/website \
--timestamp 1 \
--format oci \
--arch amd64 \
buildah push \
distrust/website \
oci:cache/oci
tar \
-C cache/oci \
--sort=name \
--mtime='@0' \
--owner=0 \
--group=0 \
--numeric-owner \
-cf $@ \
.