Travis encrypt files

Note

View on travis: Link

1. Encrypting a single file

# use --add flag to automatically add decrypt script to .travis.yml.
travis encrypt-file inputFilePath outputFilePath --add

2. Encrypting multiple files

  1. Adding files to a tar archive.
# Where foo and bar are the files you want to encrypt.
tar cvf secrets.tar foo bar
travis encrypt-file secrets.tar --add
  1. Extracting the tar archive
//-C is for CWD
- tar xvf secrets.tar -C ./out-dir
Last Updated: 1/6/2020, 1:58:20 PM