Files
interval-viz/.gitea/workflows/docker.yml
T
2026-10-16 19:18:44 +02:00

24 lines
668 B
YAML

name: Build image
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
workflow_dispatch:
jobs:
# Tags and build steps are shared across repos, see traberph/ci.
image:
uses: traberph/ci/.gitea/workflows/image.yaml@main
with:
project: public
image: interval_viz
push: ${{ github.event_name != 'pull_request' }}
secrets:
registry-username: ${{ secrets.REGISTRY_USERNAME }}
registry-token: ${{ secrets.REGISTRY_TOKEN }}
# Public image; also pushed to Docker Hub once these secrets exist.
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}