Skip to content

Commit 40f0bd3

Browse files
committed
chore: Push components to OCI registry
1 parent f336ce0 commit 40f0bd3

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

obelisk-oci.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
api.listening_addr = "127.0.0.1:5005"
2+
webui.listening_addr = "127.0.0.1:8080"
3+
4+
log.stdout.enabled = true
5+
6+
[[activity_wasm]]
7+
name = "activity_fly_http"
8+
location.oci = "docker.io/getobelisk/components_flyio_activity_fly_http:2025-09-30-1@sha256:ab5c2c14be40b9b6702a4072c24615bf7bc0e42c82806c284810a3c9682f0f91"
9+
exec.lock_expiry.seconds = 15
10+
env_vars = ["FLY_API_TOKEN"]
11+
forward_stdout = "stderr"
12+
forward_stderr = "stderr"
13+
14+
[[activity_wasm]]
15+
name = "http_activity"
16+
location.oci = "docker.io/getobelisk/test_programs_http_get_activity:2025-09-28@sha256:8131d9cafbdf06dbaf7a3b4e629791c9cf3dc1553df9418b34f25ab900b72929"
17+
exec.lock_expiry.seconds = 5
18+
forward_stdout = "stderr"
19+
forward_stderr = "stderr"
20+
21+
[[webhook_endpoint]]
22+
name = "webhook_fly_secrets_updater"
23+
location.oci = "docker.io/getobelisk/components_flyio_webhook_fly_secrets_updater:2025-09-30-1@sha256:3a4feb1bd87d6eb7028f8a4c6163730680ed3659714e5a762d86e863275a72bb"
24+
http_server = "webhook_server"
25+
routes = [{ methods = ["POST"], route = "/" }]
26+
env_vars = ["FLY_API_TOKEN"]
27+
forward_stdout = "stderr"
28+
forward_stderr = "stderr"
29+
30+
[[workflow]]
31+
name = "obelisk_deployer_flyio"
32+
location.oci = "docker.io/getobelisk/components_flyio_obelisk_deployer_flyio:2025-10-01@sha256:38e3b813a8f20666e0310cd17a9bcf4649cb93140ca30b26c9c17c38e0de8980"
33+
backtrace.sources = { "${OBELISK_TOML_DIR}/workflow/deployer-workflow/impl-flyio/src/lib.rs" = "${OBELISK_TOML_DIR}/workflow/deployer-workflow/impl-flyio/src/lib.rs" }
34+
35+
# This webhook is here only for `push-components.sh`
36+
[[webhook_endpoint]]
37+
name = "webhook_healthcheck"
38+
location.oci = "docker.io/getobelisk/components_flyio_webhook_healthcheck:2025-10-01@sha256:6fbc11b80b441ae6e642327b1ec0ceba85b2868d85dbce2d99d0d7b14a525c8c"
39+
http_server = "webhook_server"
40+
routes = ["/obeliskhealthcheck"]
41+
42+
[[http_server]]
43+
name = "webhook_server"
44+
listening_addr = "0.0.0.0:9090"

scripts/push-components.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
# Pushes all WASM components to the Docker Hub and updates obelisk-oci.toml
4+
5+
set -exuo pipefail
6+
cd "$(dirname "$0")/.."
7+
8+
TAG="$1"
9+
TOML_FILE="obelisk-oci.toml"
10+
PREFIX="docker.io/getobelisk/components_flyio_"
11+
12+
push() {
13+
RELATIVE_PATH=$1
14+
FILE_NAME_WITHOUT_EXT=$(basename "$RELATIVE_PATH" | sed 's/\.[^.]*$//')
15+
OCI_LOCATION="${PREFIX}${FILE_NAME_WITHOUT_EXT}:${TAG}"
16+
echo "Pushing ${RELATIVE_PATH} to ${OCI_LOCATION}..."
17+
OUTPUT=$(obelisk client component push "$RELATIVE_PATH" "$OCI_LOCATION")
18+
19+
# Replace the old location with the actual OCI location
20+
sed -i -E "/name = \"${FILE_NAME_WITHOUT_EXT}\"/{n;s|location\.oci = \".*\"|location.oci = \"${OUTPUT}\"|}" "$TOML_FILE"
21+
}
22+
23+
# Build components
24+
just build
25+
26+
push "target/wasm32-unknown-unknown/release_workflow/obelisk_deployer_flyio.wasm"
27+
push "target/wasm32-wasip2/release_webhook/webhook_healthcheck.wasm"
28+
29+
echo "All components pushed and TOML file updated successfully."

0 commit comments

Comments
 (0)