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