fixes: web and build

This commit is contained in:
2025-10-22 14:27:02 -04:00
committed by sbcrumb
parent 78813b9189
commit 66a80992b5
4 changed files with 24 additions and 2 deletions
+4
View File
@@ -11,6 +11,10 @@ jobs:
runs-on: host runs-on: host
steps: steps:
- name: Pre-cleanup
run: |
docker system prune -f
docker builder prune -f --filter until=24h
- name: Checkout code (DEV) - name: Checkout code (DEV)
run: | run: |
echo "Current workspace: $(pwd)" echo "Current workspace: $(pwd)"
+18
View File
@@ -11,6 +11,15 @@ jobs:
runs-on: host runs-on: host
steps: steps:
- name: Pre-cleanup Docker space
run: |
echo "🧹 Cleaning up Docker space before build..."
docker system prune -f
docker builder prune -f --filter until=24h
docker image prune -af --filter until=48h
echo "📊 Docker space after cleanup:"
docker system df
- name: Checkout code - name: Checkout code
run: | run: |
echo "Current workspace: $(pwd)" echo "Current workspace: $(pwd)"
@@ -203,6 +212,15 @@ jobs:
echo "" echo ""
echo "🐳 Pull with: docker pull 192.168.253.221:3000/sbcrumb/nfoguard:${VERSION}-gitea" echo "🐳 Pull with: docker pull 192.168.253.221:3000/sbcrumb/nfoguard:${VERSION}-gitea"
- name: Post-cleanup Docker space
if: always() # Run even if build fails
run: |
echo "🧹 Final cleanup to prevent disk space issues..."
docker system prune -f
docker builder prune -af --filter until=24h
echo "📊 Final Docker space usage:"
docker system df
deploy: deploy:
needs: build needs: build
runs-on: host runs-on: host
+1 -1
View File
@@ -1 +1 @@
2.7.0 2.7.1
+1 -1
View File
@@ -114,7 +114,7 @@ def main():
# Add authentication middleware if enabled # Add authentication middleware if enabled
if auth_enabled: if auth_enabled:
app.add_middleware(SimpleAuthMiddleware, dependencies=dependencies) app.add_middleware(SimpleAuthMiddleware, config=config)
print("🔐 Authentication middleware added to web interface") print("🔐 Authentication middleware added to web interface")
# Register web routes # Register web routes