diff --git a/.gitignore b/.gitignore index 33658b9..5bd4da9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.build-exit-code .dotfiles-cachebust diff --git a/docker/scripts/build-dotfiles.sh b/docker/scripts/build-dotfiles.sh index f3676b7..19c956c 100755 --- a/docker/scripts/build-dotfiles.sh +++ b/docker/scripts/build-dotfiles.sh @@ -8,3 +8,6 @@ DOTFILES_CACHEBUST=$(date +%s > $REPO_ROOT/.dotfiles-cachebust) # Rebuild the desktop environment $REPO_ROOT/docker/scripts/build.sh + +# Store build exit code +echo $? > $REPO_ROOT/.build-exit-code diff --git a/docker/scripts/build.sh b/docker/scripts/build.sh index 9661dd6..98bb361 100755 --- a/docker/scripts/build.sh +++ b/docker/scripts/build.sh @@ -18,3 +18,6 @@ docker build \ --tag $DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE:$DESKTOP_ENVIRONMENT_CONTAINER_TAG \ --tag $DESKTOP_ENVIRONMENT_REGISTRY/$DESKTOP_ENVIRONMENT_CONTAINER_IMAGE:latest \ $REPO_ROOT/docker + +# Store build exit code +echo $? > $REPO_ROOT/.build-exit-code