-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
35 lines (35 loc) · 4.37 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
env:
global:
- GCP_PROJECT_ID=stockmanagement-294408
- tf_version=0.13.3
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
- secure: zuXq+AauaHWRj27NHokQRfvFzbNUi9GK7Ni8/C/qCLqHvPFABE56HkCrTP3Y9h/jDddou25xrX36DSETz6020PBMhydMZr8Uyf38u5n0PeyXcJOYX5qd8aXh60PsRdkbx3xq8yWMuBbOJPGTLVaHmjXZsas2n3Upvzi6gOQ3zqaZa1xb+JBFvdPUEqdGy9pjKWo7SjE/gZM0ApTuP5AwjESRoY4JxZ9X0I7fE4MJJX5Xscr2r4zGEvSHP7mxOag9Mt50VZ1ICs4Du/Q0qKjyvpQamc0Jsu9MEPdufiI3qoXAp9FW4rDIH6RpPa/IXsqf5um6Z4q15/20vCTcd5dAF8ESjNZLLOjRlOxN0Zfs+C+qE/Aiv5aD9HHjCFZtlYJYrF0nXVW7cRRfqmZogFP44KwL5flqdEMMVc75sj+yvi2f5uxJ/4DSgdZorlsDFwk2r/zfVspyGgKp/6ad9qG0Jsi7bYS5fStx99V7d41tgum3el1be+kL6ul7nSl4ycx35LS9jIboymTRVueknPB/gGkPQN5sXkpNjl8DjrPjqnBxI8bLGLsZ+5U7Q/DZ5UI9ke3QY31W6+F4PLEG+5j/K1JLv+svH8gY/LrzFGGihV/tg+1yz6fawX/QhZDgpO10vLVsT+Jtkl+QaZjx0HIxc6LbT7BW0gNI04xq17Bnl8I=
- secure: S7iPQf1wEUvziDUhtaL7kIigEqF7DPMN3ExqEASX3qQmOlbUgVqL0SV0hh/hxlQznJ3M+xhYh5C/gIE01U/eI9jMOvQZuzrYmV+FLAF9jYMLPx46xaaTVJp7qzPX9A2dNrvPAb0Kd2Ay54StZnIdLIx51wXBEbIBZZ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ddBbvOi4/Ael3WsxwVQpfBhflH54pabXdmcPcL7fbDTAHaeDzYfLXR8HnLGVh5S+20x+yOS0DcOCpktsggpI6Wr4Z0miiDwnPEpAR3CXdDsfoKKJsBvaw3rqXzZrtTdyDtg0VE6MotqDCR1YZnHsBDw6y9flZBy1274+qovCYWgA9X2d2o7a4FVZ9y86m11F1gU/TLv9jnjCN0Zmq3N1woDJ56NLJRvkgQGp6CB5LJpGQZlv9G12dPITsMjNCB6e+L+MysN6gQZSQf519btv2EK2GxGB+/ftwLOmiecWkipyeq3vxiRduv3ivJ8yEMmWm9V9cQxvOnpWZqVJF8+YKkf1fhFNqHxvsuPJUwp1sQX4qeBvmxrY2vBnVMmKAjqn1bYP/21UEzGGnn2bofYjJFrUgZxFFFuYW3bJb4=
branches:
only:
- master
before_install:
- openssl aes-256-cbc -K $encrypted_c3d4dcca260f_key -iv $encrypted_c3d4dcca260f_iv
-in terraform.json.enc -out terraform.json -d
- curl https://sdk.cloud.google.com | bash > /dev/null
- source "$HOME/google-cloud-sdk/path.bash.inc"
- gcloud auth activate-service-account --key-file=terraform.json
- gcloud config set project "${GCP_PROJECT_ID}"
- export GOOGLE_APPLICATION_CREDENTIALS=./terraform.json
- wget https://releases.hashicorp.com/terraform/"$tf_version"/terraform_"$tf_version"_linux_amd64.zip
- unzip terraform_"$tf_version"_linux_amd64.zip
- sudo mv terraform /usr/local/bin/
- rm terraform_"$tf_version"_linux_amd64.zip
install: true
script:
- |-
set -ex;
export TF_VAR_logz_token=$LOGZ_TOKEN
export TF_VAR_logz_url=$LOGZ_URL
terraform init
terraform plan
terraform apply --auto-approve
terraform output