* 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:
Maxwell Becker
2024-10-09 09:07:38 +03:00
committed by GitHub
parent 80e5d2a972
commit 2cfae525e9
40 changed files with 633 additions and 286 deletions

View File

@@ -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"
}
}