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
23 lines
589 B
YAML
23 lines
589 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.GITEA_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 }}
|