Files
homepage/.gitea/workflows/image.yaml
T

24 lines
671 B
YAML

name: build
on:
push:
branches: [main]
tags: ["v*"]
paths-ignore: ["**.md"]
workflow_dispatch:
jobs:
# Tags and build steps are shared across repos, see traberph/ci.
image:
uses: traberph/ci/.gitea/workflows/image.yaml@v1.0.1
with:
project: public
image: homepage
# SITE_URL is compiled in (canonical URLs); HARBOR_URL is the default Harbor
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 }}