Skip to content

Commit 4e9e30f

Browse files
authored
fix: matrix issue when using shared registry
1 parent c1606d4 commit 4e9e30f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

roles/github/templates/build-kayobe-docker-image.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%- if github_environment_selector == 'input' -%>
1+
<%- if github_environment_selector == 'input' and (github_registry.share | default(github_default_registry.share)) is false -%>
22
<%- set github_runs_on = github_runs_on + ['${{ matrix.environment }}'] -%>
33
<%- set _ = github_default_registry.update({"url": "${{ vars[format('{0}_REGISTRY_URL', matrix.environment)] }}" }) -%>
44
<%- set _ = github_default_registry.update({"username": "${{ vars[format('{0}_REGISTRY_USERNAME', matrix.environment)] }}" }) -%>

tests/inventory/host_vars/reference.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ github_registry:
1717
url: pulp.infra.os.example.cloud
1818
username: admin
1919
password: ${{ secrets.REGISTRY_PASSWORD }}
20+
share: true
2021

2122
github_kayobe_arguments:
2223
KAYOBE_VAULT_PASSWORD: !unsafe "${{ secrets.KAYOBE_VAULT_PASSWORD }}"

0 commit comments

Comments
 (0)