-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Kokoro tests for Cloud Run #1629
Conversation
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
set -eo pipefail |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want the script to fail if it doesn't build or deploy the container.
.kokoro/tests/build_cloud_run.sh
Outdated
export SAMPLE_VERSION="${KOKORO_GIT_COMMIT:-latest}" | ||
# Builds not triggered by a PR will fall back to the commit hash then "latest". | ||
SUFFIX=${KOKORO_GITHUB_PULL_REQUEST_NUMBER:-${SAMPLE_VERSION:0:12}} | ||
export SERVICE_NAME="${SAMPLE_NAME}-${SUFFIX}" | ||
export CONTAINER_IMAGE="gcr.io/${GOOGLE_CLOUD_PROJECT}/run-${SAMPLE_NAME}:${SAMPLE_VERSION}" | ||
|
||
# Build the service | ||
set -x | ||
gcloud builds submit --tag="${CONTAINER_IMAGE}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some mechanism setup to only keep N versions, or is this just going to grow forever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a clean up function. I've confirmed it's working. I'm also going to check a few times over the next month to confirm there's nothing broken.
* Kokoro tests * change for kokoro to run * update bash script * fix clean up and wildcard * sample name fixed * Add todo * test remove pipe to file
No description provided.