项目作者: justinrummel

项目描述 :
Testing Travis-CI commands for Akamai DevOps
高级语言: Shell
项目地址: git://github.com/justinrummel/akamai-travis.git
创建时间: 2018-09-16T18:47:04Z
项目社区:https://github.com/justinrummel/akamai-travis

开源协议:MIT License

下载


akamai-travis

Testing Travis-CI commands for Akamai DevOps

Be sure to use travis CLI on your local machine to encrypte your .edgerc file with the necessary credentials.

In my repo, I have a folder _data/ (that is ignored) which is where I have my Akamai API PURGE Credentials saved as a text file. You DON’T want your API Credentials made public, so be sure to take proper precautions! When you run the travis CLI, be mindful of where you are running the command and the input/output options. I like having the .enc output in the root directory of the repo, which makes it easy for Travis to find and decrypt. When you decrypt, the Akamai CLI expects the default file to be .edgerc, which is what I have in my .travis.yml file vs. the output example that is below.

Example Output:

  1. admin@macbook ~/GIT/akamai-travis> travis encrypt-file _data/edgerc.txt
  2. Detected repository as justinrummel/akamai-travis, is this correct? |yes|
  3. encrypting _data/edgerc.txt for justinrummel/akamai-travis
  4. storing result as edgerc.txt.enc
  5. storing secure env variables for decryption
  6. Please add the following to your build script (before_install stage in your .travis.yml, for instance):
  7. openssl aes-256-cbc -K $encrypted_47d2d923bf7d_key -iv $encrypted_47d2d923bf7d_iv -in edgerc.txt.enc -out _data/edgerc.txt -d
  8. Pro Tip: You can add it automatically by running with --add.
  9. Make sure to add edgerc.txt.enc to the git repository.
  10. Make sure not to add _data/edgerc.txt to the git repository.
  11. Commit all changes to your .travis.yml.
  12. admin@macbook ~/GIT/akamai-travis>

Travis Build Results: https://travis-ci.org/justinrummel/akamai-travis/jobs/429319392