Skip to content

Commit

Permalink
releng/make-binary.sh: specify release tag in builder images by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford committed Jan 22, 2024
1 parent 98f7dac commit 3545b26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions releng/make-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ esac

buildtag="${2:-ghcr.io/zbm-dev/zbm-builder:$(date '+%Y%m%d')}"
if ! podman inspect "${buildtag}" >/dev/null 2>&1; then
build_args=( "${buildtag}" )

if [ -n "${ZBM_COMMIT_HASH}" ]; then
build_args+=( "${ZBM_COMMIT_HASH}" )
fi
build_args=( "${buildtag}" "${ZBM_COMMIT_HASH:-"v${release}"}" )

if ! ./releng/docker/image-build.sh "${build_args[@]}"; then
error "failed to create builder image"
Expand Down

0 comments on commit 3545b26

Please sign in to comment.