Add scripts and update drafter flow

This commit is contained in:
aditya.chandel
2025-08-29 16:26:42 -06:00
parent aa259bbf3a
commit 4cff107a67
3 changed files with 112 additions and 9 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
set -euo pipefail
# =======================
# Multi-arch Docker Build & Push for Booklore
# =======================
# Ensure a version/tag is passed
if [ -z "${1:-}" ]; then
echo "ERROR: You must provide a version/tag as the first argument."
echo "Usage: $0 <version-tag>"
exit 1
fi
VERSION="$1"
echo "Building Booklore App with multi-arch version: $VERSION"
# Ensure Docker Buildx builder exists and is used
docker buildx create --use --name multiarch-builder || true
# Build and push multi-arch Docker image
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t retr0spect101/booklore:"$VERSION" \
--push \
.
echo "Multi-arch Docker image retr0spect101/booklore:$VERSION pushed successfully!"