Skip to content

Commit

Permalink
pass-exit-code
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrehagen committed Nov 1, 2023
1 parent 9fb1002 commit b95896e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ docker build \
--tag $DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE:latest \
$REPO_ROOT/docker

BUILD_EXIT_CODE=$?

# Store build exit code
echo $? > $REPO_ROOT/.build-exit-code
echo $BUILD_EXIT_CODE > $REPO_ROOT/.build-exit-code

# Exit with build exit code
exit $BUILD_EXIT_CODE

0 comments on commit b95896e

Please sign in to comment.