intel-device-plugins-for-ku.../demo/build-image.sh
Mikko Ylinen 49db09e5a1 ci: use ubuntu-24.04 runners
Github actions runner-images install buildah from the distro. 22.04
has an ancient version and is known not to work.

Bump to the latest 24.04 runners and at the same time, drop the
BUILDAH_RUNTIME override.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2024-08-15 09:52:01 +03:00

28 lines
555 B
Bash
Executable File

#!/bin/sh -e
IMG=$1
BUILDER=$2
DIR=$(basename $IMG)
if [ -z "$DIR" ]; then
(>&2 echo "Usage: $0 <image directory>")
exit 1
fi
if [ ! -d "$DIR" ]; then
(>&2 echo "Directory $DIR doesn't exist")
exit 1
fi
CWD=`dirname $0`
TAG=${TAG:-devel}
if [ -z "$BUILDER" -o "$BUILDER" = 'docker' -o "$BUILDER" = 'podman' ] ; then
${BUILDER} build --pull -t ${IMG}:${TAG} "$CWD/$DIR/"
elif [ "$BUILDER" = 'buildah' ] ; then
buildah bud --pull-always -t ${IMG}:${TAG} "$CWD/$DIR/"
else
(>&2 echo "Unknown builder $BUILDER")
exit 1
fi