Skip to content

Commit

Permalink
Add an encrypted secret for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
pleshakov committed Oct 6, 2017
1 parent c00ecb3 commit ab6d927
Show file tree
Hide file tree
Showing 2 changed files 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 @@ -5,11 +5,13 @@ services:
go:
- 1.8.3
script:
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ] ; then export VERSION=pr-${TRAVIS_PULL_REQUEST}-${TRAVIS_BUILD_NUMBER}; else export VERSION=${TRAVIS_COMMIT} ; fi
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ] ; then export VERSION=pr-${TRAVIS_PULL_REQUEST}-${TRAVIS_BUILD_NUMBER};
else export VERSION=${TRAVIS_COMMIT} ; fi
- echo "Building ingress controller VERSION:${VERSION}"
- cd nginx-controller && make clean && make PREFIX=gcr.io/nginx-ic-dev/nginx-ingress
VERSION=${VERSION} BUILD_IN_CONTAINER=0 PUSH_TO_GCR=1
before_install:
- openssl aes-256-cbc -K $encrypted_YOURKEYID_key -iv $encrypted_YOURKEY_iv -in client-secret.json.enc -out client-secret.json -d
- openssl aes-256-cbc -K $encrypted_6e02d569a8a7_key -iv $encrypted_6e02d569a8a7_iv
-in client-secret.json.enc -out client-secret.json -d
- gcloud auth activate-service-account --key-file client-secret.json
- gcloud config set project nginx-ic-dev
Binary file added client-secret.json.enc
Binary file not shown.

0 comments on commit ab6d927

Please sign in to comment.