Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivel/travis-encrypt
https://github.com/sivel/travis-encrypt
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sivel/travis-encrypt
- Owner: sivel
- License: apache-2.0
- Created: 2014-02-22T17:07:51.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-15T19:49:32.000Z (almost 7 years ago)
- Last Synced: 2024-10-04T17:53:36.116Z (3 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# travis-encrypt
Encrypt strings for use in your Travis CI configuration files.
Contained here are 2 versions:
* [Python](python/)
* [Go](go/)The ideas for this script come from [travis](https://github.com/travis-ci/travis) and [node-travis-encrypt](https://github.com/pwmckenna/node-travis-encrypt).
I didn't want to use either of the above as I don't use ruby and node, so I wrote a python version. I also realize that some people don't use python either, so to bridge the gap I also wrote a version in Go.
## How to use encrypted data in Travis CI
See http://docs.travis-ci.com/user/encryption-keys/
## Python
```
usage: travis_encrypt.py [-h] [--version] -r REPO stringpositional arguments:
string String to encryptoptional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-r REPO, --repo REPO Repository slug (:owner/:name)
```## Go
```
usage: travis_encrypt --repo=owner/name string
-h, --help Show this help message and exit
--version Show program's version number and exit
--repo REPO Repository slug (:owner/:name)
string String to encrypt
```