Skip to content

Commit e1fed20

Browse files
committed
chore: Push rust components
1 parent b11c508 commit e1fed20

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

obelisk-oci.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[[activity_wasm]]
22
name = "activity_llm_openai"
3-
location = "oci://docker.io/getobelisk/demo_stargazers_activity_llm_openai:2026-02-09@sha256:cc94191f539401a870c6beb57056d2ef1ebfa348991fcbeff88a1ec68a435f2d"
3+
location = "oci://docker.io/getobelisk/demo_stargazers_activity_llm_openai:2026-03-29@sha256:7fff6e2d50005b4cb0da3bf7b8b8aceeb05dd20af6c61e103ba2d2c182e9e8b0"
44
exec.lock_expiry.seconds = 10
55
env_vars = [{key="OPENAI_API_BASE_URL", value="${OPENAI_API_BASE_URL:-https://api.openai.com}"}]
66
[[activity_wasm.allowed_host]]
@@ -12,7 +12,7 @@ replace_in = ["headers"]
1212

1313
[[activity_wasm]]
1414
name = "activity_github_impl"
15-
location = "oci://docker.io/getobelisk/demo_stargazers_activity_github_impl:2026-02-09@sha256:607ff4ad8cfd4aaf5723c9d36a9da7bc083352827ed99b7180e2b876aba36a16"
15+
location = "oci://docker.io/getobelisk/demo_stargazers_activity_github_impl:2026-03-29@sha256:a1f601f52ef6b93801503233600b3913d50ecbffc78e1d2046e13548615fcc12"
1616
exec.lock_expiry.seconds = 5
1717
[[activity_wasm.allowed_host]]
1818
pattern = "https://api.github.com"
@@ -23,7 +23,7 @@ replace_in = ["headers"]
2323

2424
[[activity_wasm]]
2525
name = "activity_db_turso"
26-
location = "oci://docker.io/getobelisk/demo_stargazers_activity_db_turso:2026-02-09@sha256:baa268e7d889f194662a2b8a602ecf34cb4471e210724665526cd82214d08067"
26+
location = "oci://docker.io/getobelisk/demo_stargazers_activity_db_turso:2026-03-29@sha256:cfc314fd849817b0057094859b3a58009e7024b97fcc124a757d593aa169ddfb"
2727
env_vars = ["TURSO_LOCATION"]
2828
exec.lock_expiry.seconds = 5
2929
[[activity_wasm.allowed_host]]
@@ -35,15 +35,16 @@ replace_in = ["headers"]
3535

3636
[[workflow_wasm]]
3737
name = "workflow"
38-
location = "oci://docker.io/getobelisk/demo_stargazers_workflow:2026-02-09@sha256:77b83a654509916e5cab85b0b7ebaa8fabbf67acf3effe8795428a92aa53bbbe"
38+
location = "oci://docker.io/getobelisk/demo_stargazers_workflow:2026-03-29@sha256:73b30ab6bf627b1751a5491fb8cdd6ebb7764a3391f4d1270e6407e8bf5ae3e1"
3939
backtrace.sources = { "/home/runner/work/demo-stargazers/demo-stargazers/workflow/stargazers/workflow-rs/src/lib.rs" = "${DEPLOYMENT_DIR}/workflow/stargazers/workflow-rs/src/lib.rs" }
4040

4141
[[webhook_endpoint_wasm]]
4242
name = "webhook"
43-
location = "oci://docker.io/getobelisk/demo_stargazers_webhook:2026-02-09@sha256:acd0dba728c36f23d8a3c153ea03b31c848cdbd53222377eb8f73dbc40fb1575"
43+
location = "oci://docker.io/getobelisk/demo_stargazers_webhook:2026-03-29@sha256:ac3ec877fed6557bcb2c45f7f9cc6582e4fa906e98b489055f4204c0b91e69cd"
4444
routes = [{ methods = ["POST", "GET"], route = "" }]
4545
env_vars = [
4646
"GITHUB_WEBHOOK_SECRET",
4747
# "GITHUB_WEBHOOK_INSECURE=true" # to disable signature verification
4848
]
4949
backtrace.sources = { "/home/runner/work/demo-stargazers/demo-stargazers/webhook/webhook-rs/src/lib.rs" = "${DEPLOYMENT_DIR}/webhook/webhook-rs/src/lib.rs" }
50+

scripts/push-components.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ PREFIX="docker.io/getobelisk/demo_stargazers_"
1212
push() {
1313
COMPONENT_TYPE=$1
1414
RELATIVE_PATH=$2
15-
15+
1616
FILE_NAME_WITHOUT_EXT=$(basename "$RELATIVE_PATH" | sed 's/\.[^.]*$//')
1717
OCI_LOCATION="${PREFIX}${FILE_NAME_WITHOUT_EXT}:${TAG}"
1818
echo "Pushing ${RELATIVE_PATH} to ${OCI_LOCATION}..."
1919
OUTPUT=$(obelisk component push "$RELATIVE_PATH" "$OCI_LOCATION")
2020

2121
# Replace the old location with the actual OCI location
22-
obelisk component add ${COMPONENT_TYPE} ${OUTPUT} --name ${FILE_NAME_WITHOUT_EXT} -c $TOML_FILE
22+
obelisk component add ${COMPONENT_TYPE} ${OUTPUT} --name ${FILE_NAME_WITHOUT_EXT} --deployment $TOML_FILE
2323
}
2424

2525
# Rebuild rust components
2626
just rust
2727

28-
push activity_wasm "target/wasm32-wasip2/release/activity_llm_openai.wasm"
29-
push activity_wasm "target/wasm32-wasip2/release/activity_github_impl.wasm"
30-
push activity_wasm "target/wasm32-wasip2/release/activity_db_turso.wasm"
28+
push activity "target/wasm32-wasip2/release/activity_llm_openai.wasm"
29+
push activity "target/wasm32-wasip2/release/activity_github_impl.wasm"
30+
push activity "target/wasm32-wasip2/release/activity_db_turso.wasm"
3131
push workflow "target/wasm32-unknown-unknown/release/workflow.wasm"
3232
push webhook_endpoint "target/wasm32-wasip2/release/webhook.wasm"
3333

0 commit comments

Comments
 (0)