cloudfoundry - Deploy with Travis to CF with secret environment variables -
currently have 2 .yml files, 1 travis build , 1 cloud foundry deployment.
i specified secret environment variables within cf-manifest.yml cloud foundry. due secret environment variables, not able use convenient deployment option travis offers because don't want push cf-manifest.yml git repository.
is possible deploy cloud foundry travis , specify environment variables? if is, encrypt function travis provides.
add encrypted env variables .travis.yml store following information: cf user, cf password , secret environment variables need set later deployed cloud foundry application
env: global: #cf_user - secure: djsalkdjalkduiojdklsajdlksajdo83092183jsjsj= #cf_password - secure: jdjuuuu1u1717187983198238217321983hhhshshsh= #secretenvvariable - secure: jdkljlkj0888shhshuhdsa45d64dsa1d3sa5d46sads=
maintain custom deployment within .travis.yml
after_success: - curl -l "https://cli.run.pivotal.io/stable?release=linux64binary&source=github" | tar -zx - ./cf api https://api.cf.foo.com - ./cf login -u $cf_user -p $cf_password -o trial -s testing - ./cf push myspecialapp -b java_buildpack -i 1 -m 1024m -n myspecialapp -p ./target/myspecialapp.war - ./cf set-env myspecialapp secretenvvariable $secretenvvariable
Comments
Post a Comment