From 62e532f19223e5b5ca56f4ef5dfdf4524dd84e54 Mon Sep 17 00:00:00 2001 From: Jakub Darmach Date: Wed, 26 Nov 2025 13:46:12 +0100 Subject: [PATCH 1/2] Fix env support in prepare runner This change corrects prepare runner playbook being not aware of running environment when we use input environment selector. --- roles/github/templates/prepare-runner.yml.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/github/templates/prepare-runner.yml.j2 b/roles/github/templates/prepare-runner.yml.j2 index 68dcc30..9f2ab40 100644 --- a/roles/github/templates/prepare-runner.yml.j2 +++ b/roles/github/templates/prepare-runner.yml.j2 @@ -1,3 +1,6 @@ +<%- if github_environment_selector == 'input' and (github_registry.share | default(github_default_registry.share)) is false -%> +<%- set github_runs_on = github_runs_on + ['${{ matrix.environment }}'] -%> +<%- endif -%> name: %% format_file_name(workflow.file_name, is_title=true) %% on: From 6d724069b88d25a6f6c21013f7d38119dc5c5cae Mon Sep 17 00:00:00 2001 From: Jakub Darmach Date: Wed, 26 Nov 2025 13:59:56 +0100 Subject: [PATCH 2/2] Add missing matrix --- roles/github/templates/prepare-runner.yml.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/github/templates/prepare-runner.yml.j2 b/roles/github/templates/prepare-runner.yml.j2 index 9f2ab40..4e86299 100644 --- a/roles/github/templates/prepare-runner.yml.j2 +++ b/roles/github/templates/prepare-runner.yml.j2 @@ -12,6 +12,11 @@ on: jobs: prepare-runner: + <%- if github_environment_selector == 'input' and (github_registry.share | default(github_default_registry.share)) is false +%> + strategy: + matrix: + environment: %% github_kayobe_environments %% + <%- endif +%> runs-on: %% github_runs_on %% container: image: alpine:latest