Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scripts/update_refs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ echo "$MESSAGE"
# shellcheck disable=SC2016 # We intentionally don't want to expand the variable.
find demos stacks -type f \
-exec grep --color=always -l githubusercontent {} \; \
-exec sed -i -E 's#(stackabletech/demos)/main/#\1/\${UPDATE_BRANCH_REF}/#' {} \; \
-exec sed -i -E 's#(stackabletech/demos)/(refs/heads/)?main/#\1/\${UPDATE_BRANCH_REF}/#' {} \; \
| prepend "\t"

# Now, for all modified files, we can use envsubst
Expand Down
10 changes: 6 additions & 4 deletions demos/signal-processing/create-nifi-ingestion-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ data:
service_login(username=USERNAME, password=PASSWORD)
print("Logged in")

# This file path needs adjustment for versioned demos on release branch
response = requests.get("https://raw.githubusercontent.com/stackabletech/demos/refs/heads/main/demos/signal-processing/DownloadAndWriteToDB.json")
# At release time, .scripts/update_refs.sh rewrites the branch in this URL to the release
# branch. Keep the URL in a form its regex matches, or release-branch installs will
# download this file from main (see the 26.3 regression).
response = requests.get("https://raw.githubusercontent.com/stackabletech/demos/main/demos/signal-processing/DownloadAndWriteToDB.json")

filename = "/tmp/DownloadAndWriteToDB.json"
with open(filename, "wb") as f:
f.write(response.content)
with open(filename, "w") as f:
f.write(response.text.replace("{{ NAMESPACE }}", os.environ["NAMESPACE"]))

pg_id = get_root_pg_id()

Expand Down
Loading