From 69cd1834ed60eacf8c42cef9efce53f2625e835c Mon Sep 17 00:00:00 2001 From: Javier Puig Date: Wed, 30 Sep 2026 09:19:48 +0100 Subject: [PATCH] Update .gitea/workflows/ci.yml --- .gitea/workflows/ci.yml | 48 +++++++++++++---------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d361c84..b523348 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,33 +1,15 @@ -name: fbird CI - -# Defines when the workflow runs: on every push and pull request to the main branch -on: - push: - branches: [ "main", "master" ] - pull_request: - branches: [ "main", "master" ] - -jobs: - build-and-test: - runs-on: ubuntu-latest - - steps: - # 1. Check out your repository code into the runner - - name: Checkout Code - uses: actions/checkout@v4 - - # 2. Verify that your core files exist and are structured correctly - - name: Verify Project Structure - run: | - echo "Checking repository files..." - ls -la - if [ ! -f "index.html" ]; then - echo "Error: index.html missing!" - exit 1 - fi - echo "Project structure verified successfully." - - # 3. Optional: HTML/Syntax validation check (using a lightweight linter or checker) - - name: Basic Asset Check - run: | - echo "Assets look good. Ready for deployment!" \ No newline at end of file +- name: Deploy Staging Preview + run: + echo "Updating staging environment..." + # Stop old staging instance if it exists + docker rm -f fbird-staging || true + + # Run continuous staging preview + docker run -d \ + --name fbird-staging \ + --restart always \ + -v $(pwd):/usr/share/nginx/html:ro \ + -p 8181:80 \ + nginx:alpine + + echo "Staging deployed! Visit http://192.168.183.100:8181" \ No newline at end of file