forked from github-starred/komodo
1.15.3 (#109)
* fix parser support single quote ' * add stack reclone toggle * git clone with token uses token:<TOKEN> for gitlab compatability * support stack pre deploy shell command * rename compose down update log stage * deployment configure registry login account * local testing setup * bump version to 1.15.3 * new resources auto assign server if only one * better error log when try to create resource with duplicate name * end description with . * ConfirmUpdate multi language * fix compose write to host logic * improve instrumentation * improve update diff when small array improve 2 * fix compose env file passing when repo_dir is not absolute
This commit is contained in:
@@ -244,3 +244,13 @@ export const is_service_user = (user_id: string) => {
|
||||
user_id === "Repo Manager"
|
||||
);
|
||||
};
|
||||
|
||||
export const extract_registry_domain = (image_name: string) => {
|
||||
if (!image_name) return "docker.io";
|
||||
const maybe_domain = image_name.split("/")[0];
|
||||
if (maybe_domain.includes(".")) {
|
||||
return maybe_domain
|
||||
} else {
|
||||
return "docker.io"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user