Compare commits
10 Commits
a515c160c9
...
c5c45ef81e
Author | SHA1 | Date | |
---|---|---|---|
c5c45ef81e | |||
e22525a4d7 | |||
cedfbba744 | |||
376b09cb1f | |||
e9d9ca4787 | |||
2c30ffbbe7 | |||
8588c54646 | |||
247f6c7471 | |||
2464241992 | |||
3b8c43f026 |
4
dev.toml
4
dev.toml
@ -47,7 +47,7 @@ tags = ["dev", "core"]
|
|||||||
builder = "local"
|
builder = "local"
|
||||||
version = "1.17.0"
|
version = "1.17.0"
|
||||||
auto_increment_version = false
|
auto_increment_version = false
|
||||||
image_name = "komodo"
|
image_name = "komodo-core"
|
||||||
image_tag = "dev"
|
image_tag = "dev"
|
||||||
links = [
|
links = [
|
||||||
"https://github.com/moghtech/komodo/pkgs/container/komodo"
|
"https://github.com/moghtech/komodo/pkgs/container/komodo"
|
||||||
@ -166,7 +166,7 @@ tags = ["dev"]
|
|||||||
file_contents = """
|
file_contents = """
|
||||||
const BRANCH = "1.17.0";
|
const BRANCH = "1.17.0";
|
||||||
const VERSION = "1.17.0";
|
const VERSION = "1.17.0";
|
||||||
const TAG = "dev-5";
|
const TAG = "dev-7";
|
||||||
|
|
||||||
await komodo.write("UpdateVariableValue", {
|
await komodo.write("UpdateVariableValue", {
|
||||||
name: "KOMODO_DEV_VERSION",
|
name: "KOMODO_DEV_VERSION",
|
||||||
|
75
release.toml
75
release.toml
@ -3,7 +3,7 @@ name = "komodo-binaries-aarch64"
|
|||||||
tags = ["release", "binaries", "aarch64"]
|
tags = ["release", "binaries", "aarch64"]
|
||||||
[build.config]
|
[build.config]
|
||||||
builder = "aarch64-builder"
|
builder = "aarch64-builder"
|
||||||
version = "1.17.0"
|
version = "1.17.5"
|
||||||
auto_increment_version = false
|
auto_increment_version = false
|
||||||
image_name = "komodo-binaries"
|
image_name = "komodo-binaries"
|
||||||
image_tag = "aarch64"
|
image_tag = "aarch64"
|
||||||
@ -20,7 +20,7 @@ name = "komodo-binaries-x86_64"
|
|||||||
tags = ["release", "binaries", "x86_64"]
|
tags = ["release", "binaries", "x86_64"]
|
||||||
[build.config]
|
[build.config]
|
||||||
builder = "x86_64-builder"
|
builder = "x86_64-builder"
|
||||||
version = "1.17.0"
|
version = "1.17.5"
|
||||||
auto_increment_version = false
|
auto_increment_version = false
|
||||||
image_name = "komodo-binaries"
|
image_name = "komodo-binaries"
|
||||||
image_tag = "x86_64"
|
image_tag = "x86_64"
|
||||||
@ -43,9 +43,8 @@ Must run the following command on host to create the builder:
|
|||||||
tags = ["release", "core"]
|
tags = ["release", "core"]
|
||||||
[build.config]
|
[build.config]
|
||||||
builder = "local"
|
builder = "local"
|
||||||
version = "1.17.0"
|
version = "1.17.5"
|
||||||
auto_increment_version = false
|
auto_increment_version = false
|
||||||
image_name = "komodo"
|
|
||||||
repo = "moghtech/komodo"
|
repo = "moghtech/komodo"
|
||||||
dockerfile_path = "bin/core/multi-arch.Dockerfile"
|
dockerfile_path = "bin/core/multi-arch.Dockerfile"
|
||||||
image_registry.domain = "ghcr.io"
|
image_registry.domain = "ghcr.io"
|
||||||
@ -63,7 +62,7 @@ name = "komodo-frontend"
|
|||||||
tags = ["release", "frontend"]
|
tags = ["release", "frontend"]
|
||||||
[build.config]
|
[build.config]
|
||||||
builder = "x86_64-builder"
|
builder = "x86_64-builder"
|
||||||
version = "1.17.0"
|
version = "1.17.5"
|
||||||
auto_increment_version = false
|
auto_increment_version = false
|
||||||
repo = "moghtech/komodo"
|
repo = "moghtech/komodo"
|
||||||
dockerfile_path = "frontend/Dockerfile"
|
dockerfile_path = "frontend/Dockerfile"
|
||||||
@ -84,7 +83,7 @@ Must run the following command to create the builder:
|
|||||||
tags = ["release", "periphery"]
|
tags = ["release", "periphery"]
|
||||||
[build.config]
|
[build.config]
|
||||||
builder = "local"
|
builder = "local"
|
||||||
version = "1.17.0"
|
version = "1.17.5"
|
||||||
auto_increment_version = false
|
auto_increment_version = false
|
||||||
repo = "moghtech/komodo"
|
repo = "moghtech/komodo"
|
||||||
dockerfile_path = "bin/periphery/multi-arch.Dockerfile"
|
dockerfile_path = "bin/periphery/multi-arch.Dockerfile"
|
||||||
@ -140,55 +139,41 @@ executions = [
|
|||||||
##
|
##
|
||||||
|
|
||||||
[[action]]
|
[[action]]
|
||||||
name = "publish_release"
|
name = "publish-release"
|
||||||
tags = ["release"]
|
tags = ["release"]
|
||||||
[action.config]
|
[action.config]
|
||||||
file_contents = """
|
file_contents = """
|
||||||
const KOMODO_VERSION = "1.16.11";
|
const BRANCH = "main";
|
||||||
const APPS = ["core", "periphery"];
|
const VERSION = "1.17.5";
|
||||||
const ARCHS = ["x86", "aarch64"];
|
const TAG = "release-1";
|
||||||
|
|
||||||
const last_version = (
|
|
||||||
await komodo.read("GetVariable", { name: "KOMODO_VERSION" })
|
|
||||||
).value;
|
|
||||||
|
|
||||||
// Update Variable
|
|
||||||
await komodo.write("UpdateVariableValue", {
|
await komodo.write("UpdateVariableValue", {
|
||||||
name: "KOMODO_VERSION",
|
name: "KOMODO_RELEASE_VERSION",
|
||||||
value: KOMODO_VERSION,
|
value: VERSION,
|
||||||
});
|
});
|
||||||
console.log("Updated KOMODO_VERSION to " + KOMODO_VERSION);
|
console.log("Updated KOMODO_RELEASE_VERSION to", VERSION);
|
||||||
|
|
||||||
// Update Builds
|
await komodo.write("UpdateVariableValue", {
|
||||||
for (const app of APPS) {
|
name: "KOMODO_RELEASE_TAG",
|
||||||
for (const arch of ARCHS) {
|
value: TAG,
|
||||||
const name = `komodo-${app}-${arch}`;
|
});
|
||||||
await komodo.write("UpdateBuild", {
|
console.log("Updated KOMODO_RELEASE_TAG to", TAG);
|
||||||
id: name,
|
|
||||||
config: {
|
const builds = await komodo.read("ListBuilds", { query: { tags: ["release"] } });
|
||||||
version: KOMODO_VERSION as any,
|
|
||||||
},
|
for (const build of builds) {
|
||||||
});
|
await komodo.write("UpdateBuild", {
|
||||||
console.log(`Updated Build ${name} to ${KOMODO_VERSION}`);
|
id: build.id,
|
||||||
}
|
config: { version: VERSION as any, branch: BRANCH },
|
||||||
|
});
|
||||||
|
console.log("Updated", build.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update 'release' Sync references
|
await komodo.write("CommitSync", { sync: "release" });
|
||||||
const sync = await komodo.read("GetResourceSync", { sync: "release" });
|
console.log("Committed changes to 'release' Sync");
|
||||||
const file = sync.info?.remote_contents?.find(
|
|
||||||
(file) => file.path === "release.toml",
|
|
||||||
);
|
|
||||||
await komodo.write("WriteSyncFileContents", {
|
|
||||||
sync: "release",
|
|
||||||
resource_path: file.resource_path,
|
|
||||||
file_path: file.path,
|
|
||||||
contents: file.contents.replaceAll(last_version, KOMODO_VERSION),
|
|
||||||
});
|
|
||||||
console.log(`Updated Sync references to ${KOMODO_VERSION}`);
|
|
||||||
|
|
||||||
// Start the procedure run.
|
await komodo.execute("RunProcedure", { procedure: "build-release" });
|
||||||
await komodo.execute("RunProcedure", { procedure: "build_release" });
|
console.log("Launched 'build-release' Procedure");
|
||||||
console.log("Publish Procedure triggered ✅");
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Reference in New Issue
Block a user