use reusable workflow

This commit is contained in:
2026-10-17 13:03:31 +02:00
parent f0397399ff
commit 97b78d87af
2 changed files with 26 additions and 61 deletions
+26
View File
@@ -0,0 +1,26 @@
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 }}