Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
21 lines
417 B
Bash
Executable File
21 lines
417 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
CONTAINER_ENGINE="docker" # podman | docker
|
|
VERSION="v1.7.5"
|
|
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
|