From 033c91ff69ea30b49ddfa321dd8c5493f90e1764 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 11 Aug 2015 15:12:05 -0700 Subject: [PATCH] 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 --- generate-stackbrew-library.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index a541520..554a220 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -7,7 +7,7 @@ url='git://github.com/docker-library/celery' echo '# maintainer: InfoSiftr (@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 CELERY_VERSION ' Dockerfile | cut -d' ' -f3)" versionAliases=()