Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 033c91f

Browse files
committed
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
1 parent c46a19c commit 033c91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate-stackbrew-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ url='git://github.com/docker-library/celery'
77

88
echo '# maintainer: InfoSiftr <[email protected]> (@infosiftr)'
99

10-
commit="$(git log -1 --format='format:%H' -- .)"
10+
commit="$(git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
1111
fullVersion="$(grep -m1 'ENV CELERY_VERSION ' Dockerfile | cut -d' ' -f3)"
1212

1313
versionAliases=()

0 commit comments

Comments
 (0)