fix(ci): fix sidebar tests + add registry publish + prod compose
- sidebar.test: expand category before asserting on module names (categories are collapsed by default since UI-Umbau) - ci.yml: replace build-deploy with publish job that pushes images to git.vicolab.de container registry - docker-compose.prod.yml: pull-only compose for server deployments using registry images Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+14
-6
@@ -47,15 +47,23 @@ jobs:
|
||||
- name: Run tests
|
||||
run: pnpm test
|
||||
|
||||
build-deploy:
|
||||
name: Build & Deploy
|
||||
publish:
|
||||
name: Build & Publish Images
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build Docker images
|
||||
run: docker compose build web api
|
||||
- name: Log in to Gitea Container Registry
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.vicolab.de -u ${{ gitea.actor }} --password-stdin
|
||||
|
||||
- name: Deploy services
|
||||
run: docker compose up -d web api
|
||||
- name: Build web image
|
||||
run: docker build -t git.vicolab.de/schalli/tessera-ctl/web:latest -f apps/web/Dockerfile .
|
||||
|
||||
- name: Build api image
|
||||
run: docker build -t git.vicolab.de/schalli/tessera-ctl/api:latest -f apps/api/Dockerfile .
|
||||
|
||||
- name: Push images
|
||||
run: |
|
||||
docker push git.vicolab.de/schalli/tessera-ctl/web:latest
|
||||
docker push git.vicolab.de/schalli/tessera-ctl/api:latest
|
||||
|
||||
Reference in New Issue
Block a user