automated update: 2026-06-10 19:55:53

This commit is contained in:
root
2026-06-10 19:55:53 -04:00
parent 76fe87ac06
commit 158c7f2786
2 changed files with 38 additions and 23 deletions
+7 -23
View File
@@ -2,35 +2,19 @@
set -e
# --- Configuration ---
IMAGE_NAME="ghcr.io/sudolulo/if-curator-headless"
TAG="latest"
COMMIT_MSG="automated update: $(date '+%Y-%m-%d %H:%M:%S')"
# --- 1. Git Commit & Push ---
echo "💾 Committing changes to Git..."
# --- Git Sync ---
echo "💾 Committing and pushing changes to GitHub..."
git add .
# Only proceed if there are actual changes to commit
if ! git diff-index --quiet HEAD --; then
git commit -m "$COMMIT_MSG"
git push
echo "✅ Changes pushed to GitHub."
echo "✅ Changes pushed. GitHub Actions will now build and deploy the image."
else
echo "ℹ️ No changes to commit."
echo "ℹ️ No changes detected; nothing to push."
fi
# --- 2. Build Docker ---
echo "🔧 Building image (no cache)..."
docker build --no-cache -t ${IMAGE_NAME}:${TAG} .
# --- 3. Push to GHCR ---
echo "📤 Pushing to GHCR..."
docker push ${IMAGE_NAME}:${TAG}
# --- 4. Success UI ---
echo ""
echo " ╔══════════════════════════════════════════════════╗"
echo " ║ ║"
echo " ║ ✅ GIT & DOCKER DEPLOY COMPLETE ║"
echo " ║ ║"
echo " ╚══════════════════════════════════════════════════╝"
echo ""