27 lines
906 B
YAML
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 }}
|