Consider the log file of build command is generated by | tee by command like:
set -o pipefail && ./plasmactl platform:build ${PLASMA_BUILD_ENV} ${PLASMA_BUILD_RESOURCES} --pw-base64 "${PLASMA_BUILD_PW_BASE64}" --use-volume-wd --remove-image | tee ${BUILD_LOG_FILE} && set +o pipefail
Observed
Log file produced by tee contains only:
Image "platform-actions-build:latest" doesn't exist locally, building...
Step 1/10 : FROM alpine:3.18
(...)
Successfully built 7d5fd7c5231b
Successfully tagged platform-actions-build:latest
Flag "--use-volume-wd" is set. Copying the working directory inside the container.
It does not contain the output of the command executed by launchrctl
Issue not reproduced locally but only in CI, for unknown reason
Context
Consider the log file of build command is generated by
| tee
by command like:set -o pipefail && ./plasmactl platform:build ${PLASMA_BUILD_ENV} ${PLASMA_BUILD_RESOURCES} --pw-base64 "${PLASMA_BUILD_PW_BASE64}" --use-volume-wd --remove-image | tee ${BUILD_LOG_FILE} && set +o pipefail
Observed
Expected
Todo
I see a different solutions possible :
I have a preference for last solution as it can be useful in other cases