Skip to content

Commit a9b4853

Browse files
committed
chore: Read current OCI location of workflow in json-app-init-itself.sh
1 parent 267ac4b commit a9b4853

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/json-app-init-itself.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
set -exuo pipefail
4+
cd "$(dirname "$0")/.."
5+
36
# Prints JSON containing arguments to `app-init` function.
47

58
OBELISK_VERSION=${OBELISK_VERSION:-$(obelisk -v | cut -d ' ' -f 2)}
@@ -9,6 +12,8 @@ SKIP_CLEANUP=${SKIP_CLEANUP:-false}
912
MINIO=${MINIO:-true}
1013
VM_STARTUP_DEADLINE_SECS=${VM_STARTUP_DEADLINE_SECS:-30}
1114

15+
WORKFLOW_OCI=$(awk '/name *= *"obelisk_deployer_flyio"/ {getline; match($0, /"([^"]+)"/, a); print a[1]}' obelisk-oci.toml)
16+
1217
cat <<EOF
1318
[
1419
"$FLY_ORG_SLUG",
@@ -32,7 +37,7 @@ cat <<EOF
3237
"workflow-list":[
3338
{
3439
"name": "obelisk_deployer_flyio",
35-
"location-oci": "docker.io/getobelisk/components_flyio_obelisk_deployer_flyio:2025-10-05-1@sha256:f2aacd7d90e2b8349d63a6c85f79904e99cfc754210250c24c356cb315089349"
40+
"location-oci": "$WORKFLOW_OCI"
3641
}
3742
]
3843
},

0 commit comments

Comments
 (0)