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

Commit

Permalink
Enhance "generate-stackbrew-library.sh" to only take into account cha…
Browse files Browse the repository at this point in the history
…nges to the Dockerfile or files from COPY in the Dockerfile for choosing the commit hash for a particular directory
  • Loading branch information
tianon committed Aug 11, 2015
1 parent c46a19c commit 033c91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-stackbrew-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url='git://github.com/docker-library/celery'

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 CELERY_VERSION ' Dockerfile | cut -d' ' -f3)"

versionAliases=()
Expand Down

0 comments on commit 033c91f

Please sign in to comment.