Created
February 15, 2019 19:33
-
-
Save alfonmga/1401c4d82f697aa81a3cddf9fd5b12e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if git diff --name-only HEAD^...HEAD | grep "^src/${PROJECT}"; then | |
echo "Changes here, run the build" | |
npm run test | |
docker build --tag elasticio/${PROJECT}:${REVISION} | |
docker push elasticio/${PROJECT}:${REVISION} | |
else | |
echo "No changes detected" | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment