testing GCB env vars

This commit is contained in:
Dave Stanke 2019-01-08 12:12:25 -05:00
parent c267af7c34
commit e5f1f9c535

View file

@ -16,20 +16,22 @@ steps:
args:
- '-c'
- |
env
echo "-----------------"
tools/insert_git_commit_link.sh
env:
- "COMMIT_SHA=$COMMIT_SHA"
- "SHORT_SHA=$SHORT_SHA"
steps:
- id: 'Deploy application to cluster'
name: 'gcr.io/k8s-skaffold/skaffold:v0.18.0'
entrypoint: 'bash'
args:
- '-c'
- |
gcloud container clusters get-credentials --zone=$_ZONE $_CLUSTER
skaffold run -f=skaffold.yaml --default-repo=gcr.io/$PROJECT_ID
# steps:
# - id: 'Deploy application to cluster'
# name: 'gcr.io/k8s-skaffold/skaffold:v0.18.0'
# entrypoint: 'bash'
# args:
# - '-c'
# - |
# gcloud container clusters get-credentials --zone=$_ZONE $_CLUSTER
# skaffold run -f=skaffold.yaml --default-repo=gcr.io/$PROJECT_ID
# Add more power, and more time, for heavy Skaffold build
timeout: '3600s'