Skip to content

Ubi10 base test next #1

Ubi10 base test next

Ubi10 base test next #1

# Example alternative approach for registry configuration
# This approach uses repository ownership to determine registry
env:
# More explicit registry determination based on repository ownership

Check failure on line 5 in .github/workflows/registry-config-example.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/registry-config-example.yaml

Invalid workflow file

You have an error in your yaml syntax on line 5
REGISTRY: ${{
github.repository_owner == 'devfile' && 'quay.io/devfile' ||
vars.REGISTRY ||
format('ghcr.io/{0}', github.repository_owner)
}}
# This approach:
# 1. If repository owner is 'devfile' → use 'quay.io/devfile'
# 2. Else if vars.REGISTRY is set → use that custom registry
# 3. Else → use GitHub Container Registry with repository owner
# Alternative simple approach:
# REGISTRY: ${{ vars.REGISTRY || format('ghcr.io/{0}', github.repository_owner) }}
# This always uses the fork owner's GHCR unless vars.REGISTRY is explicitly set