mirror of
https://github.com/dockersrc/go
synced 2026-06-24 20:01:07 -04:00
🔧 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user