Skip to content

Commit

Permalink
deploy to production regardless of commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jan 7, 2018
1 parent 15bd721 commit 3a16501
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ services:
script:
- |
if [ "${DEPLOY_ENVIRONMENT}" != "" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ] &&\
([ "${TRAVIS_BRANCH}" == "${DEPLOY_BRANCH}" ] || ([ "${DEPLOY_TAGS}" == "true" ] && [ "${TRAVIS_TAG}" != "" ])) &&\
! echo "${TRAVIS_COMMIT_MESSAGE}" | grep -- --no-deploy
( \
([ "${TRAVIS_BRANCH}" == "${DEPLOY_BRANCH}" ] && ! echo "${TRAVIS_COMMIT_MESSAGE}" | grep -- --no-deploy) ||\
([ "${DEPLOY_TAGS}" == "true" ] && [ "${TRAVIS_TAG}" != "" ]) \
)
then
openssl aes-256-cbc -K $encrypted_de69cc520442_key -iv $encrypted_de69cc520442_iv -in ./k8s-ops-secret.json.enc -out secret-k8s-ops.json -d
K8S_ENVIRONMENT_NAME="${DEPLOY_ENVIRONMENT}"
Expand Down

0 comments on commit 3a16501

Please sign in to comment.