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:
parent
f0b29b3c90
commit
f6e7b501ba
|
|
@ -7,7 +7,7 @@ url='git://github.com/docker-library/rabbitmq'
|
||||||
|
|
||||||
echo '# maintainer: InfoSiftr <github@infosiftr.com> (@infosiftr)'
|
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="$(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 -*
|
# fullVersion is a Debian version and we only care about the RabbitMQ version, so let's trim -*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue