mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
chore: deploy to Cloudflare Pages and update branding
- Add Cloudflare Pages deployment for landing page (snapotter.com) and docs (docs.snapotter.com) - Create deploy-landing.yml and update deploy-docs.yml workflows - Update CI to ignore apps/landing/** paths - Fix logo transparency (remove white background) across all apps - Recreate social-preview.png with SnapOtter branding - Update all docs URLs from GitHub Pages to docs.snapotter.com - Update VitePress config: light theme default, fix llms.txt paths - Add .vitepress/cache/ and .env.* to gitignore
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
set -e
|
||||
|
||||
echo "=== Step 1: Stop existing container ==="
|
||||
docker stop ashim 2>/dev/null || true
|
||||
docker rm ashim 2>/dev/null || true
|
||||
docker stop SnapOtter 2>/dev/null || true
|
||||
docker rm SnapOtter 2>/dev/null || true
|
||||
|
||||
echo "=== Step 2: Start test container ==="
|
||||
docker run -d \
|
||||
--name ashim-test \
|
||||
--name SnapOtter-test \
|
||||
-p 1349:1349 \
|
||||
-e AUTH_ENABLED=true \
|
||||
-e DEFAULT_USERNAME=admin \
|
||||
@@ -15,19 +15,19 @@ docker run -d \
|
||||
-e LOG_LEVEL=debug \
|
||||
-e RATE_LIMIT_PER_MIN=50000 \
|
||||
-e SKIP_MUST_CHANGE_PASSWORD=true \
|
||||
ashim:test-fixes
|
||||
snapotter:test-fixes
|
||||
|
||||
echo "=== Step 3: Wait for container to be healthy ==="
|
||||
echo "Waiting for health check..."
|
||||
for i in $(seq 1 60); do
|
||||
STATUS=$(docker inspect --format='{{.State.Health.Status}}' ashim-test 2>/dev/null || echo "starting")
|
||||
STATUS=$(docker inspect --format='{{.State.Health.Status}}' SnapOtter-test 2>/dev/null || echo "starting")
|
||||
if [ "$STATUS" = "healthy" ]; then
|
||||
echo "Container is healthy after ${i}0 seconds"
|
||||
break
|
||||
fi
|
||||
if [ "$STATUS" = "unhealthy" ]; then
|
||||
echo "Container is unhealthy!"
|
||||
docker logs ashim-test --tail 50
|
||||
docker logs SnapOtter-test --tail 50
|
||||
exit 1
|
||||
fi
|
||||
echo " Status: $STATUS (${i}0s elapsed)"
|
||||
@@ -41,14 +41,14 @@ TEST_EXIT=$?
|
||||
|
||||
echo "=== Step 5: Check Docker logs for errors ==="
|
||||
echo "--- Container logs (last 50 lines) ---"
|
||||
docker logs ashim-test --tail 50
|
||||
docker logs SnapOtter-test --tail 50
|
||||
|
||||
echo "=== Step 6: Cleanup ==="
|
||||
docker stop ashim-test
|
||||
docker rm ashim-test
|
||||
docker stop SnapOtter-test
|
||||
docker rm SnapOtter-test
|
||||
|
||||
# Restart original container
|
||||
echo "=== Restarting original ashim container ==="
|
||||
docker start ashim 2>/dev/null || true
|
||||
echo "=== Restarting original SnapOtter container ==="
|
||||
docker start SnapOtter 2>/dev/null || true
|
||||
|
||||
exit $TEST_EXIT
|
||||
|
||||
Reference in New Issue
Block a user