Files
aoc/.gitea/workflows/release.yml
Tomas Kracmar 6d00d7cf32
Some checks failed
CI / lint-and-test (push) Failing after 2m40s
Release / build-and-push (push) Failing after 20s
ci: use GITHUB_TOKEN secret for Gitea registry login compatibility
2026-04-16 12:12:59 +02:00

23 lines
590 B
YAML

name: Release
on:
push:
tags:
- "v*"
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.cqre.net -u ${{ gitea.actor }} --password-stdin
- 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 }}