chore: add publish job for cicd
Some checks failed
Workflow / build (push) Successful in 57s
Workflow / publish (push) Failing after 15s

This commit is contained in:
Ilia Mashkov
2026-02-09 12:51:01 +03:00
parent f3e9777267
commit b1de03106f

View File

@@ -42,3 +42,19 @@ jobs:
- name: Type Check - name: Type Check
run: yarn check:shadcn-excluded run: yarn check:shadcn-excluded
publish:
needs: build # Only runs if tests/lint pass
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' # Only deploy from main branch
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: echo "${{ secrets.CI_DEPLOY_TOKEN }}" | docker login git.allmy.work -u ${{ gitea.repository_owner }} --password-stdin
- name: Build and Push Docker Image
run: |
docker build -t git.allmy.work/${{ gitea.repository }}:latest .
docker push git.allmy.work/${{ gitea.repository }}:latest