ci: push Docker images to Gitea container registry on release tags
Some checks failed
CI / lint-and-test (push) Has been cancelled

- Update release workflow to build and push to git.cqre.net/cqrenet/aoc-backend
- Update docker-compose.yml to pull from Gitea registry
This commit is contained in:
2026-04-16 12:11:38 +02:00
parent 9f4601c4d9
commit bade860fd4
2 changed files with 9 additions and 7 deletions

View File

@@ -6,15 +6,17 @@ on:
- "v*"
jobs:
build:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
run: docker build ./backend --tag aoc-backend:${{ gitea.ref_name }}
- name: Log in to Gitea Container Registry
run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.cqre.net -u ${{ gitea.actor }} --password-stdin
- name: Verify image exists
run: docker images | grep aoc-backend
- name: Build Docker image
run: docker build ./backend --tag git.cqre.net/cqrenet/aoc-backend:${{ gitea.ref_name }}
- name: Push Docker image
run: docker push git.cqre.net/cqrenet/aoc-backend:${{ gitea.ref_name }}

View File

@@ -13,7 +13,7 @@ services:
backend:
# For local development you can switch back to: build: ./backend
image: ghcr.io/cqrenet/aoc-backend:v1.0.1
image: git.cqre.net/cqrenet/aoc-backend:v1.0.1
container_name: aoc-backend
restart: always
env_file: