Skip to content

Commit

Permalink
Fix kokoro config (#662)
Browse files Browse the repository at this point in the history
Allowed values are standard and flex. Use them for the version.
Always deploy app.yaml, so don't specify it.
  • Loading branch information
fhinkel authored Jun 15, 2018
1 parent a74d7e6 commit 6d2e1aa
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .kokoro/appengine/test-deployment/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,4 @@ env_vars: {
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-docs-samples/.kokoro/build-with-appengine.sh"
}


# Used in `gcloud app deploy ${APPENGINE_ENVIRONMENT}.yaml
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "app"
}
6 changes: 6 additions & 0 deletions .kokoro/appengine/test-deployment/hello-world-flex.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
env_vars: {
key: "PROJECT"
value: "appengine/hello-world/flexible"
}

# flexible or standard
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "flexible"
}
6 changes: 6 additions & 0 deletions .kokoro/appengine/test-deployment/hello-world-standard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
env_vars: {
key: "PROJECT"
value: "appengine/hello-world/standard"
}

# flexible or standard
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "standard"
}
6 changes: 6 additions & 0 deletions .kokoro/appengine/test-deployment/metadata-flex.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
env_vars: {
key: "PROJECT"
value: "appengine/metadata/flexible"
}

# flexible or standard
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "flexible"
}
6 changes: 6 additions & 0 deletions .kokoro/appengine/test-deployment/metadata-standard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
env_vars: {
key: "PROJECT"
value: "appengine/metadata/standard"
}

# flexible or standard
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "standard"
}
6 changes: 6 additions & 0 deletions .kokoro/appengine/test-deployment/storage-flex.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
env_vars: {
key: "PROJECT"
value: "appengine/storage/flexible"
}

# flexible or standard
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "flexible"
}
6 changes: 6 additions & 0 deletions .kokoro/appengine/test-deployment/storage-standard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@
env_vars: {
key: "PROJECT"
value: "appengine/storage/standard"
}

# flexible or standard
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "standard"
}
2 changes: 1 addition & 1 deletion .kokoro/build-with-appengine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ gcloud config set project $GCLOUD_PROJECT


# Deploy the app
gcloud app deploy ${APPENGINE_ENVIRONMENT}.yaml --version $GAE_VERSION --no-promote --quiet
gcloud app deploy --version $GAE_VERSION --no-promote --quiet
if [ -e "worker.yaml" ]; then
gcloud app deploy worker.yaml --version ${GAE_VERSION} --no-promote --quiet
fi
Expand Down

0 comments on commit 6d2e1aa

Please sign in to comment.