Installation step
How to get a FREE tier to have $300 for 12 month in Google Console
TBD.
How to create a Google Kubernetes Engine (GKE)
TBD.
How to create a encrypted service account file
- Genereate a JSON key after creating a service account called travis-deployer with Role Kubernetes Engine Admin
- Move it to the root directory with name service-account.json and DO NOT ADD it to the git repository
- Encrypte JSON key file using TraviCI CLI
- Go the root directory of this repo
- run
docker run -it -v $(pwd):/app ruby:2.6 sh
- In side the docker instance run
travis login
. It will ask you for credentials- Username: *********
- Password for USERNAME: *********
- (IF ENABLED) Two-factor authentication code for USERNAME:
- Create a encrypted file by running
travis encrypt-file service-account.json -r USERNAME/REPO_NAME
It will return something like this:
encrypting service-account.json for USERNAME/REPO_NAME storing result as service-account.json.enc storing secure env variables for decryption Please add the following to your build script (before_install stage in your .travis.yml, for instance): `openssl aes-256-cbc -K $encrypted_9f3b5599b056_key -iv $encrypted_9f3b5599b056_iv -in service-account.json.enc -out service-account.json -d` Pro Tip: You can add it automatically by running with --add. Make sure to add service-account.json.enc to the git repository. Make sure not to add service-account.json to the git repository. Commit all changes to your .travis.yml.