first template launch
This commit is contained in:
14
build.sh
Normal file → Executable file
14
build.sh
Normal file → Executable file
@@ -3,10 +3,22 @@ set -e
|
||||
REGISTRY="registry.keyboardvagabond.com"
|
||||
VERSION="latest"
|
||||
PLATFORM="linux/arm64"
|
||||
IMAGE_NAME="keyboard-vagabond-landing"
|
||||
IMAGE_NAME="keyboard-vagabond-web"
|
||||
|
||||
echo "Building Keyboard Vagabond Landing Page..."
|
||||
|
||||
# Ensure dist/ folder exists with optimized files
|
||||
if [ ! -d "dist" ]; then
|
||||
echo "⚠️ No dist/ folder found. Creating optimized build first..."
|
||||
if [ -f "package.json" ]; then
|
||||
npm run dist-minified
|
||||
else
|
||||
echo "❌ Error: No package.json found. Run 'npm install' first."
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Optimized build created in dist/"
|
||||
fi
|
||||
|
||||
docker build \
|
||||
--platform $PLATFORM \
|
||||
--tag $REGISTRY/library/$IMAGE_NAME:$VERSION \
|
||||
|
||||
Reference in New Issue
Block a user