Setup Travis CI - Gapminder/dollar-street-framework GitHub Wiki

Add to Travis CI all needed environment variables

EXTERNAL_PORT
ID_PROJECT # don't show
MODE_ENV # dont' show
NODE_ENV # dont' show
PORT
RELEASE # dont' show
TIMESTAMP
ZONE

For deploying dev env, dev instances with TIMESTAMP should exist

Add GCP secret key for deployment

gcloud iam service-accounts keys create ../dev-ds-key.json --iam-account [email protected] 
gcloud iam service-accounts keys create ../release-ds-key.json --iam-account [email protected]

base64 ../release-ds-key.json > ../release-ds-key.txt
base64 ../dev-ds-key.json > ../dev-ds-key.txt

replace all \n to nothing paste into the environment variables to Travis CI

GCLOUD_SERVICE_KEY # dev-ds-key.txt  - don't show
GCLOUD_SERVICE_KEY_RELEASE_DS # release-ds-key.txt - dont' show

TIMESTAMP should be changed only when you want to update instances significantly

Consider it as an instance version