ci: Run builtin registry whenever secret is available

This commit is contained in:
Jade Ellis 2025-04-18 22:25:10 +01:00
parent 298e2af3d7
commit d4561e950b
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -16,7 +16,8 @@ on:
env:
BUILTIN_REGISTRY: forgejo.ellis.link
BUILTIN_REGISTRY_ENABLED: "${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false) && 'true' || 'false' }}"
BUILTIN_REGISTRY_ENABLED: "${{ ((vars.BUILTIN_REGISTRY_USER && secrets.BUILTIN_REGISTRY_PASSWORD) || (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false)) && 'true' || 'false' }}"
jobs:
define-variables: