build: seperate CI and CD
Some checks failed
TrafficCue Server CD / build (push) Has been cancelled
TrafficCue Server CI / check (push) Failing after 30s

This commit is contained in:
2025-09-06 12:51:24 +02:00
parent cc109e44f5
commit 71b750fa5e
2 changed files with 27 additions and 19 deletions

26
.gitea/workflows/cd.yml Normal file
View File

@ -0,0 +1,26 @@
name: TrafficCue Server CD
on:
push:
branches:
- main
- staging
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ vars.registry_url }}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v2
- name: Build image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ vars.registry_url }}/trafficcue/trafficcue-server:${{ gitea.ref_name == 'main' && 'latest' || gitea.ref_name }}
platforms: linux/amd64