Update build.sh
use buildah or podman instead of docker if available
This commit is contained in:
parent
f915352138
commit
703742d7cd
1 changed files with 12 additions and 1 deletions
13
build.sh
13
build.sh
|
@ -17,7 +17,18 @@ SHA=$( git rev-parse --short HEAD )
|
||||||
git checkout $SHA
|
git checkout $SHA
|
||||||
|
|
||||||
REPO=quay.io/quay/quay:$SHA
|
REPO=quay.io/quay/quay:$SHA
|
||||||
docker build -t $REPO .
|
|
||||||
|
# Use buildah or podman or docker
|
||||||
|
if [ -x /usr/bin/buildah ]; then
|
||||||
|
BUILDER="/usr/bin/buildah bud"
|
||||||
|
elif [ -x /usr/bin/podman ]; then
|
||||||
|
BUILDER="/usr/bin/podman build"
|
||||||
|
elif [ -x /usr/bin/docker ] ; then
|
||||||
|
BUILDER="/usr/bin/docker build"
|
||||||
|
fi
|
||||||
|
echo $BUILDER
|
||||||
|
|
||||||
|
$BUILDER -t $REPO .
|
||||||
echo $REPO
|
echo $REPO
|
||||||
|
|
||||||
git checkout "$NAME"
|
git checkout "$NAME"
|
||||||
|
|
Reference in a new issue