Skip to content

Commit b477b3b

Browse files
ahauservguenhter
authored andcommitted
fix: support full container registry URLs in autoscaler plugin config
Allow gitlab_runner.autoscaler.plugin to accept full container registry URLs (e.g. 123456789.dkr.ecr.eu-central-1.amazonaws.com/gitlab-org/fleeting/plugins/aws:latest) while still correctly resolving to the appropriate fleeting plugin template.
1 parent 1c8acdc commit b477b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/config.runners.autoscaler/autoscaler.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
max_use_count = {{ gitlab_runner.autoscaler.max_use_count }}
55
max_instances = {{ gitlab_runner.autoscaler.max_instances }}
66

7-
{{ lookup('template', 'config.runners.autoscaler/fleeting.plugin.' ~ gitlab_runner.autoscaler.plugin.split(':')[0] ~ '.j2') }}
7+
{{ lookup('template', 'config.runners.autoscaler/fleeting.plugin.' ~ gitlab_runner.autoscaler.plugin.split('/')[-1].split(':')[0] ~ '.j2') }}
88

99
[runners.autoscaler.connector_config]
1010
{% for key, value in gitlab_runner.autoscaler.connector_config.items() %}

0 commit comments

Comments
 (0)