Add CI/CD workflow for automatic builds
Some checks failed
Build and Push Frontend / build (push) Failing after 9s
Some checks failed
Build and Push Frontend / build (push) Failing after 9s
Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
26
.gitea/workflows/build.yml
Normal file
26
.gitea/workflows/build.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user