Compare commits

..

31 Commits

Author SHA1 Message Date
c043b813b0 [Komodo] Commit Sync: update release.toml 2025-06-24 23:35:16 +00:00
49c69b817b [Komodo] Commit Sync: update release.toml 2025-06-16 06:47:55 +00:00
d11136020b [Komodo] Commit Sync: update release.toml 2025-06-15 23:45:20 +00:00
35aee72167 [Komodo] Commit Sync: update release.toml 2025-06-07 06:11:29 +00:00
c60a7630f8 remove code workspace 2025-06-01 18:22:13 -07:00
ccc9480c04 [Komodo] Commit Sync: update release.toml 2025-05-30 19:56:49 +00:00
23127309bf [Komodo] Commit Sync: update release.toml 2025-05-30 18:54:19 +00:00
7d1d12e60b [Komodo] Commit Sync: update release.toml 2025-05-30 06:52:22 +00:00
cb1e518686 [Komodo] Commit Sync: update builders.toml 2025-05-30 06:46:55 +00:00
043e8c8395 [Komodo] Commit Sync: update dev.toml 2025-05-30 06:33:49 +00:00
e1766bc131 [Komodo] mbecker20: Commit Resource File: update dev.toml 2025-05-30 06:28:03 +00:00
1a7cee7bdb [Komodo] Commit Sync: update release.toml 2025-05-30 06:26:40 +00:00
994820fd1f [Komodo] Commit Sync: update builders.toml 2025-05-30 06:26:22 +00:00
774140974a [Komodo] Commit Sync: update dev.toml 2025-05-30 06:25:58 +00:00
43c202a756 upload all binaries 2025-05-29 23:24:49 -07:00
4f63a1344a [Komodo] Commit Sync: update dev.toml 2025-05-30 06:17:04 +00:00
0303259639 update workspace 2025-05-29 23:13:46 -07:00
3aa4a62cd1 [Komodo] Commit Sync: update builders.toml 2025-05-30 06:03:00 +00:00
d5986edd67 Update release.toml 2025-05-30 05:58:58 +00:00
76aa602a1d [Komodo] Commit Sync: update dev.toml 2025-05-30 05:55:53 +00:00
ecb4ac3358 [Komodo] Commit Sync: update builders.toml 2025-05-30 05:55:23 +00:00
c5c45ef81e [Komodo] Commit Sync: update release.toml 2025-05-04 21:50:24 +00:00
e22525a4d7 [Komodo] Commit Sync: update release.toml 2025-04-27 22:54:41 +00:00
cedfbba744 [Komodo] Commit Sync: update release.toml 2025-04-25 02:04:35 +00:00
376b09cb1f [Komodo] Commit Sync: update release.toml 2025-04-19 06:18:42 +00:00
e9d9ca4787 [Komodo] Commit Sync: update release.toml 2025-04-14 21:53:52 +00:00
2c30ffbbe7 [Komodo] Commit Sync: update release.toml 2025-03-23 23:48:43 +00:00
8588c54646 [Komodo] Commit Sync: update release.toml 2025-03-23 22:52:54 +00:00
247f6c7471 use komodo-core 2025-03-23 15:27:19 -07:00
2464241992 dev-7 2025-03-23 15:11:28 -07:00
3b8c43f026 publish-release rename 2025-03-23 15:10:43 -07:00
6 changed files with 129 additions and 75 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.DS_Store

View File

@ -4,11 +4,12 @@ tags = ["builder"]
[builder.config]
type = "Aws"
params.region = "us-east-2"
params.instance_type = "c7g.2xlarge"
params.instance_type = "c7g.4xlarge"
params.ami_id = "ami-06fdde90cf1861127"
params.subnet_id = "subnet-02ae5ad480eacc4bc"
params.key_pair_name = "komodo-key"
params.assign_public_ip = true
params.use_public_ip = true
params.security_group_ids = ["sg-0babe545ecfb49c9b"]
params.user_data = """
#!/bin/bash
@ -21,7 +22,7 @@ name = "local"
tags = ["builder"]
[builder.config]
type = "Url"
params.address = "https://3.132.55.195:8120"
params.address = "https://178.156.176.15:8120"
##
@ -31,10 +32,12 @@ tags = ["builder"]
[builder.config]
type = "Aws"
params.region = "us-east-2"
params.instance_type = "c5.4xlarge"
params.ami_id = "ami-0364d0950b88ef0e9"
params.subnet_id = "subnet-02ae5ad480eacc4bc"
params.key_pair_name = "komodo-key"
params.assign_public_ip = true
params.use_public_ip = true
params.security_group_ids = ["sg-0babe545ecfb49c9b"]
params.user_data = """
#!/bin/bash

View File

@ -3,7 +3,7 @@ name = "komodo-binaries-dev-aarch64"
tags = ["dev", "binaries", "aarch64"]
[build.config]
builder = "aarch64-builder"
version = "1.17.0"
version = "1.18.0"
auto_increment_version = false
image_name = "komodo-binaries"
image_tag = "dev-aarch64"
@ -11,7 +11,7 @@ links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo-binaries"
]
repo = "moghtech/komodo"
branch = "1.17.0"
branch = "1.18.0"
dockerfile_path = "bin/binaries.Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
@ -24,7 +24,7 @@ name = "komodo-binaries-dev-x86_64"
tags = ["dev", "binaries", "x86_64"]
[build.config]
builder = "x86_64-builder"
version = "1.17.0"
version = "1.18.0"
auto_increment_version = false
image_name = "komodo-binaries"
image_tag = "dev-x86_64"
@ -32,7 +32,7 @@ links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo-binaries"
]
repo = "moghtech/komodo"
branch = "1.17.0"
branch = "1.18.0"
dockerfile_path = "bin/binaries.Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
@ -45,15 +45,15 @@ name = "komodo-core-dev"
tags = ["dev", "core"]
[build.config]
builder = "local"
version = "1.17.0"
version = "1.18.0"
auto_increment_version = false
image_name = "komodo"
image_name = "komodo-core"
image_tag = "dev"
links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo"
"https://github.com/moghtech/komodo/pkgs/container/komodo-core"
]
repo = "moghtech/komodo"
branch = "1.17.0"
branch = "1.18.0"
dockerfile_path = "bin/core/multi-arch.Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
@ -74,7 +74,7 @@ name = "komodo-frontend-dev"
tags = ["dev", "frontend"]
[build.config]
builder = "local"
version = "1.17.0"
version = "1.18.0"
auto_increment_version = false
image_name = "komodo-frontend"
image_tag = "dev"
@ -82,7 +82,7 @@ links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo-frontend"
]
repo = "moghtech/komodo"
branch = "1.17.0"
branch = "1.18.0"
dockerfile_path = "frontend/Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
@ -95,7 +95,7 @@ name = "komodo-periphery-dev"
tags = ["dev", "periphery"]
[build.config]
builder = "local"
version = "1.17.0"
version = "1.18.0"
auto_increment_version = false
image_name = "komodo-periphery"
image_tag = "dev"
@ -103,7 +103,7 @@ links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo-periphery"
]
repo = "moghtech/komodo"
branch = "1.17.0"
branch = "1.18.0"
dockerfile_path = "bin/periphery/multi-arch.Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
@ -118,6 +118,34 @@ build_args = """
##
[[build]]
name = "komodo-util-dev"
tags = ["dev", "util"]
[build.config]
builder = "local"
version = "1.18.0"
auto_increment_version = false
image_name = "komodo-util"
image_tag = "dev"
links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo-util"
]
repo = "moghtech/komodo"
branch = "1.18.0"
dockerfile_path = "bin/util/multi-arch.Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
image_registry.organization = "moghtech"
extra_args = [
"--platform linux/amd64,linux/arm64",
"--builder builder"
]
build_args = """
BINARIES_IMAGE = ghcr.io/moghtech/komodo-binaries:latest-dev
"""
##
[[repo]]
name = "upload-binaries-dev"
tags = ["dev", "binaries"]
@ -154,6 +182,7 @@ enabled = true
executions = [
{ execution.type = "RunBuild", execution.params.build = "komodo-core-dev", enabled = true },
{ execution.type = "RunBuild", execution.params.build = "komodo-periphery-dev", enabled = true },
{ execution.type = "RunBuild", execution.params.build = "komodo-util-dev", enabled = true },
{ execution.type = "BuildRepo", execution.params.repo = "upload-binaries-dev", enabled = true }
]
@ -164,9 +193,9 @@ name = "publish-dev"
tags = ["dev"]
[action.config]
file_contents = """
const BRANCH = "1.17.0";
const VERSION = "1.17.0";
const TAG = "dev-5";
const BRANCH = "1.18.0";
const VERSION = "1.18.0";
const TAG = "dev-1";
await komodo.write("UpdateVariableValue", {
name: "KOMODO_DEV_VERSION",
@ -204,7 +233,7 @@ name = "dev"
tags = ["dev"]
[resource_sync.config]
git_provider = "git.komo.do"
repo = "moghtech/build"
repo = "komodo/build"
git_account = "mbecker20"
resource_path = ["dev.toml"]
managed = true

View File

@ -1,8 +0,0 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

View File

@ -3,7 +3,7 @@ name = "komodo-binaries-aarch64"
tags = ["release", "binaries", "aarch64"]
[build.config]
builder = "aarch64-builder"
version = "1.17.0"
version = "1.18.4"
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.18.4"
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.18.4"
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.18.4"
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.18.4"
auto_increment_version = false
repo = "moghtech/komodo"
dockerfile_path = "bin/periphery/multi-arch.Dockerfile"
@ -98,6 +97,28 @@ extra_args = [
##
[[build]]
name = "komodo-util"
tags = ["release", "util"]
[build.config]
builder = "local"
version = "1.18.4"
auto_increment_version = false
links = [
"https://github.com/moghtech/komodo/pkgs/container/komodo-util"
]
repo = "moghtech/komodo"
dockerfile_path = "bin/util/multi-arch.Dockerfile"
image_registry.domain = "ghcr.io"
image_registry.account = "mbecker20"
image_registry.organization = "moghtech"
extra_args = [
"--platform linux/amd64,linux/arm64",
"--builder builder"
]
##
[[repo]]
name = "upload-binaries"
tags = ["release", "binaries"]
@ -134,61 +155,48 @@ enabled = true
executions = [
{ execution.type = "RunBuild", execution.params.build = "komodo-core", enabled = true },
{ execution.type = "RunBuild", execution.params.build = "komodo-periphery", enabled = true },
{ execution.type = "RunBuild", execution.params.build = "komodo-util", enabled = true },
{ execution.type = "BuildRepo", execution.params.repo = "upload-binaries", enabled = true }
]
##
[[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.18.4";
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");
"""
##

View File

@ -22,15 +22,36 @@ docker pull $AARCH64_IMAGE
x86_64_id=$(docker create $X86_64_IMAGE sh)
aarch64_id=$(docker create $AARCH64_IMAGE sh)
docker cp $x86_64_id:/periphery ./periphery-x86_64
docker cp $aarch64_id:/periphery ./periphery-aarch64
## CORE
docker cp $x86_64_id:/core ./core-x86_64
curl --user mbecker20:$KOMODO_GIT_TOKEN \
--upload-file ./core-x86_64 \
https://git.komo.do/api/packages/komodo/generic/core/$KOMODO_VERSION-$TAG/core-x86_64
docker cp $aarch64_id:/core ./core-aarch64
curl --user mbecker20:$KOMODO_GIT_TOKEN \
--upload-file ./core-aarch64 \
https://git.komo.do/api/packages/komodo/generic/core/$KOMODO_VERSION-$TAG/core-aarch64
## PERIPHERY
docker cp $x86_64_id:/periphery ./periphery-x86_64
curl --user mbecker20:$KOMODO_GIT_TOKEN \
--upload-file ./periphery-x86_64 \
https://git.komo.do/api/packages/moghtech/generic/periphery/$KOMODO_VERSION-$TAG/periphery-x86_64
https://git.komo.do/api/packages/komodo/generic/periphery/$KOMODO_VERSION-$TAG/periphery-x86_64
docker cp $aarch64_id:/periphery ./periphery-aarch64
curl --user mbecker20:$KOMODO_GIT_TOKEN \
--upload-file ./periphery-aarch64 \
https://git.komo.do/api/packages/moghtech/generic/periphery/$KOMODO_VERSION-$TAG/periphery-aarch64
https://git.komo.do/api/packages/komodo/generic/periphery/$KOMODO_VERSION-$TAG/periphery-aarch64
## UTIL
docker cp $x86_64_id:/util ./util-x86_64
curl --user mbecker20:$KOMODO_GIT_TOKEN \
--upload-file ./util-x86_64 \
https://git.komo.do/api/packages/komodo/generic/util/$KOMODO_VERSION-$TAG/util-x86_64
docker cp $aarch64_id:/util ./util-aarch64
curl --user mbecker20:$KOMODO_GIT_TOKEN \
--upload-file ./util-aarch64 \
https://git.komo.do/api/packages/komodo/generic/util/$KOMODO_VERSION-$TAG/util-aarch64
docker container rm $x86_64_id
docker container rm $aarch64_id