Enhance "generate-stackbrew-library.sh" to only take into account changes to the Dockerfile or files from COPY in the Dockerfile for choosing the commit hash for a particular directory

This commit is contained in:
Tianon Gravi 2015-08-11 15:12:48 -07:00
parent f0b29b3c90
commit f6e7b501ba
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ url='git://github.com/docker-library/rabbitmq'
echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
commit="$(git log -1 --format='format:%H' -- .)"
commit="$(git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
fullVersion="$(grep -m1 'ENV RABBITMQ_VERSION ' Dockerfile | cut -d' ' -f3)"
# fullVersion is a Debian version and we only care about the RabbitMQ version, so let's trim -*