@@ -10,6 +10,8 @@ env:
|
||||
IMAGE: registry.traberph.de/public/homepage
|
||||
# Baked in at build time (canonical URLs); override with a repository variable.
|
||||
SITE_URL: ${{ vars.SITE_URL || 'https://traberph.de' }}
|
||||
# Default Harbor instance baked into the image as an env var (overridable at runtime).
|
||||
HARBOR_URL: ${{ vars.HARBOR_URL || 'https://registry.traberph.de' }}
|
||||
|
||||
jobs:
|
||||
image:
|
||||
@@ -50,9 +52,9 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: ${{ steps.tags.outputs.tags }}
|
||||
# Harbor settings are runtime env vars, so only the site URL is a build arg.
|
||||
build-args: |
|
||||
SITE_URL=${{ env.SITE_URL }}
|
||||
HARBOR_URL=${{ env.HARBOR_URL }}
|
||||
labels: |
|
||||
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
||||
org.opencontainers.image.revision=${{ steps.tags.outputs.sha }}
|
||||
|
||||
Reference in New Issue
Block a user