Skip to content

Commit

Permalink
[DP-1462] Export IMAGE_BUILDER_ROOT to enable shared build functional…
Browse files Browse the repository at this point in the history
…ity. (#24)

Env variable is used by shared code in the image-builder repo, and makes it easy
to use the shared functionality both locally and in CircleCI.
  • Loading branch information
vanzin authored Oct 13, 2022
1 parent 7694112 commit a3cd359
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.8
0.1.9
2 changes: 1 addition & 1 deletion formula/ih-core.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class IhCore < Formula
VERSION="0.1.8"
VERSION="0.1.9"
desc "Brew formula for installing core tools used at Included Health engineering."
homepage "https://github.com/ConsultingMD/homebrew-ih-public"
license "CC BY-NC-ND 4.0"
Expand Down
2 changes: 2 additions & 0 deletions lib/core/toolrepos/default/10_toolrepos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ if [[ -d "${IMAGEBUILDER_BIN}" ]]; then
if [[ ! "$PATH" =~ ${IMAGEBUILDER_BIN} ]]; then
export PATH="${IMAGEBUILDER_BIN}:${PATH}"
fi

export IMAGE_BUILDER_ROOT="$IMAGEBUILDER_DIR"
fi

# ██████╗ ██████╗ ███╗ ██╗ ██████╗ ████████╗ ███████╗██████╗ ██╗████████╗
Expand Down
6 changes: 5 additions & 1 deletion meta/bump
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ set -e
git pull

# Update the formula and the version file with the new version
sed -i '' "s/VERSION=.*/VERSION=\"$VERSION\""/ "$ROOT_DIR/formula/ih-core.rb"
if [ "$(uname)" = "Linux" ]; then
sed -i "s/VERSION=.*/VERSION=\"$VERSION\""/ "$ROOT_DIR/formula/ih-core.rb"
else
sed -i '' "s/VERSION=.*/VERSION=\"$VERSION\""/ "$ROOT_DIR/formula/ih-core.rb"
fi
echo "$VERSION" >"$ROOT_DIR/VERSION"

# If updating the files caused a change then commit that change.
Expand Down

0 comments on commit a3cd359

Please sign in to comment.