Last active
January 29, 2019 19:12
-
-
Save ricardochaves/acbb521babfa966885405ba25d37b632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dist: trusty | |
sudo: false | |
cache: | |
directories: | |
- "$HOME/google-cloud-sdk/" | |
services: | |
- docker | |
before_deploy: | |
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi | |
- source /home/travis/google-cloud-sdk/path.bash.inc | |
- gcloud --quiet version | |
- gcloud --quiet components update | |
- gcloud --quiet components update kubectl | |
env: | |
global: | |
# GENERAL | |
- GOOGLE_APPLICATION_CREDENTIALS=~/gcloud-service-key.json | |
- ZONE=us-central1-a | |
- IMAGE_NAME=image-docker-api | |
- K8S_NAMESPACE=default | |
- APP_DEPLOYMENT=k8s-deploy-name | |
- APP_CONTAINER=app | |
# DEV | |
- PROJECT_DEV=my-project-44556 | |
- CLUSTER_DEV=cluster-statue-dev | |
deploy: | |
- provider: script | |
script: chmod +x gcloud/deploy-develop.sh && gcloud/deploy-develop.sh | |
skip_cleanup: true | |
on: | |
branch: develop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment