This commit is contained in:
Julian Wefers
2026-05-30 21:21:42 +02:00
commit e3eae265f7
6 changed files with 86 additions and 0 deletions
Executable
+40
View File
@@ -0,0 +1,40 @@
REPO="gitea.wefers.page/julian/backup-server"
TAG="latest"
build() {
buildah build \
-t ${REPO}:${TAG} \
--pull \
--layers \
--squash \
--format oci \
.
if [ $? -eq 0 ]; then
buildah login gitea.wefers.page -u julian -p 278b81490079574229dce45b66b726d2ae7e83c0
buildah push \
--compression-format zstd:chunked \
"${REPO}:${TAG}"
fi
}
mkImage() {
sudo podman run \
--rm \
-it \
--privileged \
--pull=newer \
--network=host \
--security-opt label=type:unconfined_t \
-v ./config.toml:/config.toml:ro \
-v ./output:/output \
-v /etc/containers/storage.conf:/etc/containers/storage.conf \
-v /var/lib/containers/storage:/var/lib/containers/storage \
quay.io/centos-bootc/bootc-image-builder:latest \
--type anaconda-iso \
--use-librepo=True \
${REPO}:${TAG}
}
$1