From 6ebfbbb4f11c032f0c3fee3aab9cfb30ce717ea6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 16 Sep 2021 17:33:38 +0200 Subject: Add build helpers --- build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..9ca49f0 --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +cd "$(dirname "$0")" + +trap 'rm -rf tmp' EXIT +rm -rf tmp + +buildah bud -t rebel-rootfs --squash +buildah push rebel-rootfs dir:tmp +buildah rmi rebel-rootfs + +digest="$(jq -r '.layers[0].digest'