Share the target filter, fix cd-status branch, record deploy status
- enabled_targets/names_for: one implementation of 'a host acts only on its own targets'; --host s5 and --host s5.fisher.hu now select the same targets - shell_value: JSON booleans reach shell consumers as true/false - cd-status: capture before eval, so the unconfigured-host branch is reachable - cd-deploy writes a .status record; cd-status reads it instead of grepping the log's prose - cd-render-hooks --list-urls replaces two inline JSON readers
This commit is contained in:
+3
-9
@@ -119,15 +119,9 @@ printf ' %-28s %s\n' "Trigger On" "Push Events"
|
||||
printf ' %-28s %s\n' "Secret" "the matching value from ${SECRETS_FILE}"
|
||||
echo
|
||||
|
||||
"${REPO_ROOT}/bin/cd-render-hooks" --redact >/dev/null 2>&1 || true
|
||||
python3 - "$HOOKS_FILE" "$CD_BIND" "$CD_PORT" <<'PY'
|
||||
import json, sys
|
||||
hooks_file, bind, port = sys.argv[1], sys.argv[2], sys.argv[3]
|
||||
with open(hooks_file) as fh:
|
||||
hooks = json.load(fh)
|
||||
for hook in hooks:
|
||||
print(f" http://{bind}:{port}/hooks/{hook['id']}")
|
||||
PY
|
||||
"${REPO_ROOT}/bin/cd-render-hooks" --list-urls \
|
||||
--output "$HOOKS_FILE" --base-url "http://${CD_BIND}:${CD_PORT}" \
|
||||
| sed 's/^/ /'
|
||||
|
||||
echo
|
||||
echo " Logs: journalctl --user -u ${UNIT_NAME} -f"
|
||||
|
||||
Reference in New Issue
Block a user