File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ image_name='metabrainz/mb-solr'
1919
2020cd " $( dirname " ${BASH_SOURCE[0]} " ) /"
2121
22+ DOCKER_CMD=${DOCKER_CMD:- docker}
2223vcs_ref=` git describe --always --broken --dirty --tags`
2324version=${vcs_ref# v}
2425
@@ -49,16 +50,16 @@ tag=${version}
4950tag_aliases=${version_aliases[@]}
5051timestamp=` date -u +" %Y-%m-%dT%H:%M:%SZ" `
5152
52- docker build \
53+ ${DOCKER_CMD} build \
5354 --build-arg MB_SOLR_VERSION=${version} \
5455 --build-arg BUILD_DATE=${timestamp} \
5556 --build-arg VCS_REF=${vcs_ref} \
5657 --tag ${image_name} :${tag} . \
5758 | tee ./" build-${version} -at-${timestamp} .log"
5859
59- docker push ${image_name} :${tag}
60+ ${DOCKER_CMD} push ${image_name} :${tag}
6061
6162for tag_alias in ${tag_aliases[@]} ; do
62- docker tag ${image_name} :${tag} metabrainz/mb-solr:${tag_alias}
63- docker push ${image_name} :${tag_alias}
63+ ${DOCKER_CMD} tag ${image_name} :${tag} metabrainz/mb-solr:${tag_alias}
64+ ${DOCKER_CMD} push ${image_name} :${tag_alias}
6465done
You can’t perform that action at this time.
0 commit comments