change docker builder to buildx

This commit is contained in:
2023-04-21 19:46:45 +02:00
parent 6fa1732981
commit 0486f908d9
+3 -1
View File
@@ -26,7 +26,9 @@ build_docker_image() {
TAG="$1" TAG="$1"
echo "Building..." echo "Building..."
docker build -t "$DOCKER_IMAGE_NAME:$TAG" . docker buildx build --push \
--platform linux/amd64 \
--tag "$DOCKER_IMAGE_NAME:$TAG" .
} }
if [ "$GIT_BRANCH" == "main" ]; then if [ "$GIT_BRANCH" == "main" ]; then