Add build script to automatically build the image and push all tags.

This commit is contained in:
Manuel Friedli 2026-02-12 22:46:42 +01:00
parent 04fd5f35e6
commit 0f09331492
Signed by: manuel
GPG key ID: 41D08ABA75634DA1

18
buildandtag.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/sh
docker image pull gentoo/portage:latest
docker image pull gentoo/stage3:amd64-nomultilib-openrc
datetag="$(date +%Y%m%d)"
docker build \
-t "gittr.ch/linux/pkgcheck:latest" \
-t "gittr.ch/linux/pkgcheck:${datetag}" \
-t "fritteli/pkgcheck:latest" \
-t "fritteli/pkgcheck:${datetag}" \
.
docker image push "gittr.ch/linux/pkgcheck:latest"
docker image push "gittr.ch/linux/pkgcheck:${datetag}"
docker image push "fritteli/pkgcheck:latest"
docker image push "fritteli/pkgcheck:${datetag}"