minor changes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2025-12-24 14:26:54 -08:00
parent e494afd914
commit 257d6a3797

10
ship.sh
View File

@@ -1,9 +1,7 @@
#!/bin/bash
set -e
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
# X Poster Build & Deploy Script
# Blog Build & Deploy Script
REGISTRY="harbor.scottyah.com"
NAMESPACE="scottyah"
IMAGE_NAME="blog"
@@ -26,7 +24,7 @@ while [[ $# -gt 0 ]]; do
-h|--help)
echo "Usage: ./ship.sh [OPTIONS]"
echo ""
echo "Build and deploy X Poster to Kubernetes"
echo "Build and deploy Blog to Kubernetes"
echo ""
echo "Options:"
echo " --build-only Only build and push Docker image"
@@ -67,7 +65,7 @@ if [ "$DEPLOY_ONLY" = false ]; then
--network=host \
-t "${TAG_TIMESTAMP}" \
-t "${TAG_LATEST}" \
"$SCRIPT_DIR/.."
"."
echo ""
echo "✅ Build complete!"
@@ -94,7 +92,7 @@ if [ "$BUILD_ONLY" = false ]; then
# Apply Kubernetes configuration
echo "Applying Kubernetes configuration..."
kubectl apply -f "$SCRIPT_DIR/../k8s.yaml"
kubectl apply -f "k8s.yaml"
echo ""
echo "Waiting for namespace to be ready..."