diff --git a/scripts/build-and-push.sh b/scripts/build-and-push.sh index be2271f..85f25de 100755 --- a/scripts/build-and-push.sh +++ b/scripts/build-and-push.sh @@ -11,11 +11,12 @@ set -e REGISTRY="10.0.10.205:3000" IMAGE_NAME="bert.hausmans/questionnaire" TAG="${1:-latest}" +PLATFORM="linux/amd64" FULL_IMAGE="${REGISTRY}/${IMAGE_NAME}:${TAG}" -echo "🔨 Building image: ${FULL_IMAGE}" -docker build -t "${FULL_IMAGE}" . +echo "🔨 Building image for ${PLATFORM}: ${FULL_IMAGE}" +docker build --platform "${PLATFORM}" -t "${FULL_IMAGE}" . echo "📤 Pushing image to registry..." docker push "${FULL_IMAGE}" @@ -23,4 +24,3 @@ docker push "${FULL_IMAGE}" echo "✅ Done! Image pushed: ${FULL_IMAGE}" echo "" echo "📋 In Dockge: klik op 'Update' om de nieuwe image te pullen" -