allow additional_registries to have tag prefix
This commit is contained in:
Vendored
+4
-4
@@ -62113,8 +62113,8 @@ function processAdditionalRegistries(targetRegistries) {
|
||||
const additionalRegistriesArr = additionalRegistries.split(',');
|
||||
for (let registry of additionalRegistriesArr) {
|
||||
registry = registry.trim();
|
||||
if (registry.endsWith(':')) {
|
||||
registry = registry.substring(0, registry.length - 1);
|
||||
if (!registry.contains(':')) {
|
||||
registry += ':';
|
||||
}
|
||||
targetRegistries.push(registry);
|
||||
}
|
||||
@@ -62220,7 +62220,7 @@ function prepareDestinations(registries, tags) {
|
||||
const destinations = [];
|
||||
registries.forEach((registry) => {
|
||||
tags.forEach((tag) => {
|
||||
destinations.push(registry + ':' + tag);
|
||||
destinations.push(registry + tag);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -62336,7 +62336,7 @@ try {
|
||||
|
||||
let ci_registry = false;
|
||||
if (core.getBooleanInput('add_ci_registry_target')) {
|
||||
ci_registry = information.ci_hostname + '/' + repoStr;
|
||||
ci_registry = information.ci_hostname + '/' + repoStr + ':';
|
||||
targetRegistries.push(ci_registry);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user