🔧 track exit codes and fix entrypoint invocation 🔧

- `go-workflow`: accumulate step exit codes into `GO_EXITCODE` and `exit $GO_EXITCODE` so failures propagate to the caller
- `run_step`: capture and return each step's exit code instead of silently swallowing it
- `entrypoint.sh`: replace `__exec_command go-workflow` with direct `go-workflow "$@"` so the process and args are passed correctly
- Strip trailing whitespace from `@@Other` and `@@Resource` header fields

rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/bin/go-workflow
This commit is contained in:
2026-06-12 14:10:04 -04:00
parent a9d439d32a
commit 4b8f035091
2 changed files with 17 additions and 5 deletions
+1 -1
View File
@@ -508,7 +508,7 @@ if [ "$START_SERVICES" = "yes" ] || [ -z "$1" ]; then
CONTAINER_INIT="${CONTAINER_INIT:-no}"
# No user command: run default Go workflow instead of blocking
if [ $# -eq 0 ]; then
go-workflow
go-workflow "$@"
exit $?
fi
fi