Dateien für docker image build & push angelegt

This commit is contained in:
2026-04-23 10:37:52 +02:00
parent b159bdd351
commit 838f6e96e0
5 changed files with 66 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "${SCRIPT_DIR}/.env"
IMAGE="${REGISTRY}/${IMAGE_NAME}:${IMAGE_TAG}"
echo "=== Image bauen & pushen: ${IMAGE} ==="
docker login -u $REGISTRY_USER -p $REGISTRY_PW https://$REGISTRY
docker buildx build \
--platform linux/arm64,linux/amd64 \
--push \
-t $IMAGE \
"${SCRIPT_DIR}/.."
# in case you use a proxy:
#--build-arg http_proxy=$http_proxy \
#--build-arg https_proxy=$https_proxy \
#--build-arg no_proxy=$no_proxy \
echo "Fertig: ${IMAGE}"