Skip to content

Commit

Permalink
Add build hook for garage-base docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanshu committed May 11, 2021
1 parent 1e7ca02 commit cdf5d4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/hooks/build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@ echo DOCKERFILE_PATH="$DOCKERFILE_PATH"
echo DOCKER_REPO="$DOCKER_REPO"
echo IMAGE_NAME="$IMAGE_NAME"

if [[ "$DOCKER_REPO" = *"rlworkgroup/garage" ]]; then
if [[ "$DOCKER_REPO" = *"rlworkgroup/garage-base" ]]; then
echo "Building target garage-base"
docker build \
-f "../$DOCKERFILE_PATH" \
--build-arg BUILDKIT_INLINE_CACHE=1 \
--target garage-base \
-t "$IMAGE_NAME" \
..
elif [[ "$DOCKER_REPO" = *"rlworkgroup/garage" ]]; then
echo "Building target garage"
docker build \
-f "../$DOCKERFILE_PATH" \
Expand Down

0 comments on commit cdf5d4b

Please sign in to comment.