Skip to content

Commit

Permalink
.travis
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Jan 6, 2018
1 parent 89aa4ba commit 32ac83c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_js:
env:
matrix:
- DEPLOY_ENVIRONMENT=staging DEPLOY_BRANCH=master
- DEPLOY_ENVIRONMENT=production DEPLOY_BRANCH=master DEPLOY_TAGS=true
- DEPLOY_ENVIRONMENT=production DEPLOY_TAGS=true
- ""
cache:
directories:
Expand Down
6 changes: 3 additions & 3 deletions .travis/continuous_deployment.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

if [ "${DEPLOY_ENVIRONMENT}" != "" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ] && [ "${TRAVIS_BRANCH}" == "${DEPLOY_BRANCH}" ] &&\
! echo "${TRAVIS_COMMIT_MESSAGE}" | grep -- --no-deploy && ([ "${TRAVIS_COMMIT}" != "" ] || [ "${TRAVIS_TAG}" != "" ]) &&\
([ "${DEPLOY_TAGS}" == "" ] || [ "${TRAVIS_TAG}" != "" ])
if [ "${DEPLOY_ENVIRONMENT}" != "" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ] &&\
([ "${TRAVIS_BRANCH}" == "${DEPLOY_BRANCH}" ] || ([ "${DEPLOY_TAGS}" == "true" ] && [ "${TRAVIS_TAG}" != "" ])) &&\
! echo "${TRAVIS_COMMIT_MESSAGE}" | grep -- --no-deploy
then
openssl aes-256-cbc -K $encrypted_f2bd2a0d33d6_key -iv $encrypted_f2bd2a0d33d6_iv -in ./k8s-ops-secret.json.enc -out secret-k8s-ops.json -d
K8S_ENVIRONMENT_NAME="${DEPLOY_ENVIRONMENT}"
Expand Down

0 comments on commit 32ac83c

Please sign in to comment.