Skip to content

Commit

Permalink
travis-cripts/docker: don't build on cron events
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Souza committed Feb 9, 2019
1 parent 2fd1149 commit 955c5df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions travis-scripts/docker.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
exit 0
fi

if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
echo >&2 "Skipping image build on cron..."
exit 0
fi

if [ "${TRAVIS_GO_VERSION}" != "${GO_FOR_RELEASE}" ]; then
echo >&2 "Skipping image build on Go ${TRAVIS_GO_VERSION}"
exit 0
Expand Down

0 comments on commit 955c5df

Please sign in to comment.