Skip to content

Commit

Permalink
Build from 'builder.dockerfile' if exists
Browse files Browse the repository at this point in the history
This change allows to track the used Builder tag in a Dockerfile.
This is useful for using Dependabot to keep the builder version up to date.
  • Loading branch information
fwilhe committed Dec 4, 2023
1 parent 5119151 commit 607d5b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ done

if [ "$container_image" = localhost/builder ]; then
dir="$(dirname -- "$(realpath -- "${BASH_SOURCE[0]}")")"
"$container_engine" build -t "$container_image" "$dir"
containerfile=$([[ -f builder.dockerfile ]] && echo -f builder.dockerfile || true )
"$container_engine" build -t "$container_image" $containerfile "$dir"
fi

repo="$(./get_repo)"
Expand Down

0 comments on commit 607d5b9

Please sign in to comment.