Skip to content

Instantly share code, notes, and snippets.

@mlafeldt
Created August 22, 2013 21:35
Show Gist options
  • Select an option

  • Save mlafeldt/6313106 to your computer and use it in GitHub Desktop.

Select an option

Save mlafeldt/6313106 to your computer and use it in GitHub Desktop.
Encrypt environment variables for Travis
desc 'Encrypt environment variables for Travis'
task :travis_encrypt, [:aws_key_id, :aws_secret] do |t, args|
raw_vars = "AWS_ACCESS_KEY_ID=#{args[:aws_key_id]} AWS_SECRET_ACCESS_KEY=#{args[:aws_secret]}"
sh 'travis', 'encrypt', raw_vars
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment