-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow encryption of multiple variables #5
Conversation
File.write(travis_yaml, travis_config.to_yaml) | ||
else | ||
say encrypted.inspect, template(__FILE__) | ||
if interactive? |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This will break encrypting SSH keys... |
You're right. Is there a different way we could do this, or should we reject the feature request? |
No, I think in general this is something we want. We could add a flag for splitting it (or for not splitting it). |
Maybe we should also not do the |
No, I think that is wanted. If you do env:
- FOO=bar BAR=foobar is different from
|
Also, you can't encrypt too much env vars due to the length limit, so most of the time you will need to keep them split anyway. |
env vars which should not create a matrix should go in the global section anyhow On 18/01/2013, at 12:50 AM, Piotr Sarnacki notifications@github.com wrote:
|
Yes, |
This allows you to do something like the following: $ travis encrypt <<EOF username=random password=random2 EOF Please add the following to your .travis.yml file: secure: "gfs4uN5PQcp..." secure: "asdfsdfDF..." Pro Tip™: You can add it automatically by running with --add.
What's the length limit? Maybe we should check that... |
^...$ just matches any line in the string, \A...\Z makes sure that this is matching the entire string.
I'm not sure, but it's related to restrictions for encrypting using public key. The error is: |
@henrikhodne what do you think about the commits I added? |
�@rkh Looks good to me. |
Conflicts: lib/travis/cli/encrypt.rb
Allow encryption of multiple variables
This allows you to do something like the following:
Requested in #4