carservice: initial commit

This commit is contained in:
Hermes
2026-07-20 21:17:12 +01:00
commit d315323191
69 changed files with 9255 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
name: Build and publish images
on:
push:
branches: [main]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and push images to the Gitea registry
run: |
REGISTRY="${GITHUB_SERVER_URL#http://}"
REGISTRY="${REGISTRY#https://}"
REPO="${GITHUB_REPOSITORY,,}"
echo "${{ secrets.GITHUB_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.actor }}" --password-stdin
docker build -t "$REGISTRY/$REPO/backend:latest" -f Dockerfile .
docker push "$REGISTRY/$REPO/backend:latest"
docker build -t "$REGISTRY/$REPO/frontend:latest" -f Dockerfile.frontend .
docker push "$REGISTRY/$REPO/frontend:latest"