Allow to skip deployment with [skip deploy] commit message part

This commit is contained in:
ErickSkrauch 2020-04-22 02:50:33 +03:00
parent 45a93deb24
commit 06b61e1603

View File

@ -7,7 +7,7 @@ go:
stages:
- Tests
- name: Deploy
if: env(TRAVIS_PULL_REQUEST) IS false AND (branch = master OR tag IS present)
if: env(TRAVIS_PULL_REQUEST) IS false AND (branch = master OR tag IS present) AND commit_message !~ /(\[skip deploy\])/
install:
- go get -u github.com/golang/dep/cmd/dep