Skip to content

Commit

Permalink
Build from 'builder.dockerfile' if exists (#43)
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 11, 2023
1 parent 4cd3ab6 commit 4a395ca
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 4a395ca

Please sign in to comment.