Skip to content

Commit 267ac4b

Browse files
committed
chore: Push components to OCI registry
1 parent 743fe6f commit 267ac4b

4 files changed

Lines changed: 27 additions & 5 deletions

File tree

obelisk-oci.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ forward_stderr = "stderr"
2121

2222
[[workflow]]
2323
name = "obelisk_deployer_flyio"
24-
location.oci = "docker.io/getobelisk/components_flyio_obelisk_deployer_flyio:2025-10-05-1@sha256:f2aacd7d90e2b8349d63a6c85f79904e99cfc754210250c24c356cb315089349"
24+
location.oci = "docker.io/getobelisk/components_flyio_obelisk_deployer_flyio:2025-10-11@sha256:fc0efc7766f7ef3110b55c16df00a74db26aa6f0d9dcf9ffe7bed22d992d753d"
2525
backtrace.sources = { ".../src/lib.rs" = "${OBELISK_TOML_DIR}/workflow/deployer-workflow/impl-flyio/src/lib.rs" }
2626

2727
# This webhook is here only for `push-components.sh`
2828
[[webhook_endpoint]]
2929
name = "webhook_healthcheck"
30-
location.oci = "docker.io/getobelisk/components_flyio_webhook_healthcheck:2025-10-05-1@sha256:9f9229ea35946df0c596ef94fb85f3ab826597c7434a57f4cd77a9389ef5da8d"
30+
location.oci = "docker.io/getobelisk/components_flyio_webhook_healthcheck:2025-10-11@sha256:4538c5b3f1bc2c207ee8852bc2cc40f903205d2edfc19b718fd52f3bbcf6768b"
3131
http_server = "webhook_server"
3232
routes = ["/obeliskhealthcheck"]
3333

scripts/push-components.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ push "target/wasm32-unknown-unknown/release_workflow/obelisk_deployer_flyio.wasm
2727
push "target/wasm32-wasip2/release_webhook/webhook_healthcheck.wasm"
2828

2929
echo "All components pushed and TOML file updated successfully."
30+
31+
# obelisk.toml is parsed in toml.rs, snapshots will need updating.
32+
./scripts/test.sh
33+
cargo insta accept --workspace

workflow/deployer-workflow/impl-flyio/src/snapshots/obelisk_deployer_flyio__toml__tests__serialize_obelisk_toml_should_produce_correct_config.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ name = "webhook_healthcheck"
7373
routes = [""]
7474

7575
[webhook_endpoint.location]
76-
oci = "docker.io/getobelisk/components_flyio_webhook_healthcheck:2025-10-01@sha256:6fbc11b80b441ae6e642327b1ec0ceba85b2868d85dbce2d99d0d7b14a525c8c"
76+
oci = "docker.io/getobelisk/components_flyio_webhook_healthcheck:2025-10-11@sha256:4538c5b3f1bc2c207ee8852bc2cc40f903205d2edfc19b718fd52f3bbcf6768b"
7777

7878
[[webhook_endpoint]]
7979
env_vars = ["GITHUB_WEBHOOK_SECRET"]

workflow/deployer-workflow/impl-flyio/src/toml.rs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,29 @@ use crate::{
33
HEALTHCHECK_INTERNAL_PORT, SQLITE_DIRECTORY_PATH, VOLUME_MOUNT_PATH, WEBHOOK_INTERNAL_PORT,
44
};
55
use anyhow::{Context, anyhow};
6-
use toml::Table; // Explicitly import Table
6+
use toml::Table;
77

88
pub(crate) fn serialize_obelisk_toml(config: &ObeliskConfig) -> Result<String, anyhow::Error> {
99
const HEALTHCHECK_SERVER_NAME: &str = "healthcheck_server";
1010
const WEBHOOK_SERVER_NAME: &str = "webhook_server";
11+
const OBELISK_OCI_TOML: &str = include_str!("../../../../obelisk-oci.toml");
12+
13+
let webhook_healthcheck_ock = {
14+
let val: toml::Value = toml::from_str(OBELISK_OCI_TOML).expect("Invalid TOML");
15+
16+
let endpoint = val["webhook_endpoint"]
17+
.as_array()
18+
.and_then(|arr| {
19+
arr.iter()
20+
.find(|item| item["name"].as_str() == Some("webhook_healthcheck"))
21+
})
22+
.expect("endpoint not found");
23+
24+
endpoint["location"]["oci"]
25+
.as_str()
26+
.expect("missing location.oci")
27+
.to_string()
28+
};
1129

1230
let initial_toml_template = format!(
1331
r#"
@@ -33,7 +51,7 @@ listening_addr = "0.0.0.0:{HEALTHCHECK_INTERNAL_PORT}"
3351
3452
[[webhook_endpoint]]
3553
name = "webhook_healthcheck"
36-
location.oci = "docker.io/getobelisk/components_flyio_webhook_healthcheck:2025-10-01@sha256:6fbc11b80b441ae6e642327b1ec0ceba85b2868d85dbce2d99d0d7b14a525c8c"
54+
location.oci = "{webhook_healthcheck_ock}"
3755
http_server = "{HEALTHCHECK_SERVER_NAME}"
3856
routes = [""]
3957

0 commit comments

Comments
 (0)