Skip to content

Instantly share code, notes, and snippets.

@ianchen06
Created December 10, 2019 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ianchen06/7a9ba471f832ac23357f5e8494c688c8 to your computer and use it in GitHub Desktop.
Save ianchen06/7a9ba471f832ac23357f5e8494c688c8 to your computer and use it in GitHub Desktop.
Execute only when specified module is changed
git diff-tree --no-commit-id --name-only -r `git rev-parse master` | awk -F "/" '{print $1}' | uniq |
grep mysql2hive && /usr/local/bin/dockerd-entrypoint.sh /bin/drone-docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment