From a3249dd3ad82e67ebdb0b42ecd6c8f5cf6290493 Mon Sep 17 00:00:00 2001 From: Hector Ros Date: Tue, 20 Jan 2026 01:21:03 +0100 Subject: [PATCH] Add CI/CD workflow for automatic builds Co-Authored-By: Claude Sonnet 4.5 (1M context) --- .gitea/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..07a7f82 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build and Push Frontend + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Build Docker image + run: docker build -t git.fuq.tv/admin/aiworker-frontend:${{ gitea.sha }} . + + - name: Tag as latest + run: docker tag git.fuq.tv/admin/aiworker-frontend:${{ gitea.sha }} git.fuq.tv/admin/aiworker-frontend:latest + + - name: Login to Gitea registry + run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.fuq.tv -u admin --password-stdin + + - name: Push images + run: | + docker push git.fuq.tv/admin/aiworker-frontend:${{ gitea.sha }} + docker push git.fuq.tv/admin/aiworker-frontend:latest