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