Skip to content

Commit

Permalink
fix build logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bri committed Feb 24, 2024
1 parent fbe93af commit 8da7d03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ CLEAN() {
BUILD_IMAGE_TASKS() {
#INSTALL_CACHIX
#WITH_CACHIX BUILD_IMAGE
BUILD_IMAGE
BUILD_IMAGE 2> >(tee "build_${INVOCATION_NAME}.log" >&2)
}

# UPLOAD_TASKS
Expand All @@ -271,10 +271,10 @@ BUILD_AND_UPLOAD() {
BUILT_ARTIFACT="$(
# and tee build log (from stderr) to build_${INVOCATION_NAME}.log
BUILD_IMAGE_TASKS
)" 2>&1 >(tee "build_${INVOCATION_NAME}.log")
)"
# upload built image
cp "build_${INVOCATION_NAME}.log" "${BUILT_ARTIFACT}.log"
UPLOAD_TASKS "${BUILT_ARTIFACT}"{,.log} 2>&1
UPLOAD_TASKS "${BUILT_ARTIFACT}"{,.log} 2>&1 | tee "upload_${INVOCATION_NAME}.log"
}

# BUILD_MATRIX
Expand Down

0 comments on commit 8da7d03

Please sign in to comment.