Files
thechart/docker-build.sh

21 lines
417 B
Bash
Executable File

#!/usr/bin/bash
CONTAINER_ENGINE="docker" # podman | docker
VERSION="v1.7.3"
REGISTRY="gitea-http.taildb3494.ts.net/will/thechart"
if [ "$CONTAINER_ENGINE" == "podman" ];
then
buildah build \
-t $REGISTRY:$VERSION \
--platform linux/amd64 \
--no-cache .
else
DOCKER_BUILDKIT=1 \
docker buildx build \
--platform linux/amd64 \
-t $REGISTRY:$VERSION \
--no-cache \
--push .
fi