Files
homepage/.gitea/workflows/image.yaml
T
2026-10-17 13:03:31 +02:00

27 lines
906 B
YAML

name: build
on:
push:
branches: [main]
tags: ["v*"]
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: homepage
# SITE_URL is compiled in (canonical URLs); HARBOR_URL is the default Harbor
# instance, still overridable at runtime. Override either with a repository variable.
build-args: |
SITE_URL=${{ vars.SITE_URL || 'https://traberph.de' }}
HARBOR_URL=${{ vars.HARBOR_URL || 'https://registry.traberph.de' }}
secrets:
registry-username: ${{ secrets.REGISTRY_USERNAME }}
registry-token: ${{ secrets.REGISTRY_TOKEN }}
# Public image, so it is mirrored to Docker Hub too.
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}