0.0
No commit activity in last 3 years
No release in over 3 years
Set dotenv values in your CI provider
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 4.0
>= 2.1.1, < 3.0.0
>= 1.8.0
 Project Readme

dotenv ➡️ ci

Twitter: @joshdholtz License Gem

The laziest way to transfer environment variables from a .env file to a CI provider 👋

Example 🤯

Runs circleci to upload the contents of .env.test to the joshdholtz/fastlane-circleci-test GitHub project on CircleCI 🚀

$ dotenv_to_ci circleci -V github -u joshdholtz -p "fastlane-circleci-test" -d ".env.test" --verbose
Setting key=DISABLE_HOOKS} value=true
Setting key=FASTLANE_TEAM_ID value=12345321234
Setting key=AWS_SNS_ACCESS_KEY value=less secrety but you kow
Setting key=AWS_SNS_SECRET_ACCESS_KEY value=sshhhhhh
Setting key=AWS_SNS_REGION value=us-east-1
Setting key=AWS_SNS_PLATFORM_GCM_API_KEY value=a key you dont need to see
Setting key=SIGH_APP_IDENTIFIER value=com.app.ios
Setting key=SIGH_USERNAME value=dontenable2fa@email.com
Setting key=SIGH_TEAM_ID value=324324324
Setting key=CORDOVA_IOS_TEAM_ID value=324324324
Setting key=FASTLANE_PASSWORD value=fastlaneisthebest
Setting key=FL_HOCKEY_API_TOKEN value=riphockeyiwillmissyou
Setting key=FL_HOCKEY_NOTES_TYPE value=1
Successfully added: DISABLE_HOOKS, FASTLANE_TEAM_ID, AWS_SNS_ACCESS_KEY, AWS_SNS_SECRET_ACCESS_KEY, AWS_SNS_REGION, AWS_SNS_PLATFORM_GCM_API_KEY, SIGH_APP_IDENTIFIER, SIGH_USERNAME, SIGH_TEAM_ID, CORDOVA_IOS_TEAM_ID, FASTLANE_PASSWORD, FL_HOCKEY_API_TOKEN, FL_HOCKEY_NOTES_TYPE

And the results on CircleCI! 🎊🎉

CircleCI Screenshot

Installation 🔨

$ gem install dotenv_to_ci

or with Bundler

source "https://rubygems.org"
gem "dotenv_to_ci"

Supported CIs 💪

WIP

Options 🤔

$ dotenv_to_ci --help
  NAME:
    dotenv_to_ci
  DESCRIPTION:
    Set environment variables on your CI provider
  COMMANDS:
    circleci Set environment variables on CircleCI
    help     Display global or [command] help documentation
  GLOBAL OPTIONS:
    --verbose
    -h, --help
        Display help documentation
    -v, --version
        Display version information
    -t, --trace
        Display backtrace when an error occurs

CircleCI

$ dotenv_to_ci circleci --help
  NAME:
    circleci
  SYNOPSIS:
    dotenv_to_ci circleci
  DESCRIPTION:
    Set environment variables on CircleCI
  OPTIONS:
    -d, --dotenvs STRING
        Dotenv file name(s) (ex: .env, .env.secret)
    -T, --token STRING
        API token
    -V, --vcs STRING
        VCS (allowed: github, bitbucket)
    -u, --username STRING
        Username
    -p, --project STRING
        Project

Author

Josh Holtz, me@joshholtz.com, @joshdholtz

License

dotent_to_ci is available under the MIT license. See the LICENSE file for more info.