init
This commit is contained in:
Executable
+40
@@ -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
|
||||
Reference in New Issue
Block a user