Ubi10 base test next #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example alternative approach for registry configuration | ||
| # This approach uses repository ownership to determine registry | ||
| env: | ||
| # More explicit registry determination based on repository ownership | ||
| 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 | ||