From c2f8229b34503eec196907c2bb552fe40b326936 Mon Sep 17 00:00:00 2001 From: Ellis Tarn Date: Wed, 22 May 2019 05:08:06 -0700 Subject: [PATCH] Adds release for automated GitOps triggered image builds for KFServing (#99) * Adds release for automated GitOps triggered image builds for KFServing * Updates to using latest tag * Updated manager.yaml to include correct image --- config/default/manager_image_patch.yaml | 2 +- release/README.md | 12 ++++++++++++ .../kfserving-controller.cloud-build.yaml | 7 +++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 release/README.md create mode 100644 release/cloud-build-configs/kfserving-controller.cloud-build.yaml diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml index 1a6a8cae57d..56a6c5a0cc1 100644 --- a/config/default/manager_image_patch.yaml +++ b/config/default/manager_image_patch.yaml @@ -8,5 +8,5 @@ spec: spec: containers: # Change the value of image field below to your controller image URL - - image: kfserving-controller:latest + - image: gcr.io/kfserving/kfserving-controller:latest name: manager diff --git a/release/README.md b/release/README.md new file mode 100644 index 00000000000..0c391c57553 --- /dev/null +++ b/release/README.md @@ -0,0 +1,12 @@ +# Release Process +KFServing's automated release processes run in Google Cloud Build under the project `kfserving`. For permissions to this project, please contact ellisbigelow@google.com. + +Builds are available at https://console.cloud.google.com/cloud-build/builds?project=kfserving. +To view builds, you must be a member of kubeflow-discuss@googlegroups.com. + +## Latest Release +KFServing's release process relies on Github build triggers in Google Cloud Build. This build trigger was configured manually to execute the configurations in cloud-build-configs. For each build config, whenever a change is made to this repository, a Cloud Build is triggered which rebuilds all relevant images with a tag and pushes them to `gcr.io/kfserving`. For example, `kfserving-controller.cloud-build.yaml` will result in an image called `gcr.io/kfserving/kfserving-controller:latest` + +## Versioned Releases +This process is currently TBD, but we will eventually provide releases of the form `gcr.io/kfserving/$IMAGE_NAME:$GIT_BRANCH` + diff --git a/release/cloud-build-configs/kfserving-controller.cloud-build.yaml b/release/cloud-build-configs/kfserving-controller.cloud-build.yaml new file mode 100644 index 00000000000..68ea0e39cf6 --- /dev/null +++ b/release/cloud-build-configs/kfserving-controller.cloud-build.yaml @@ -0,0 +1,7 @@ +steps: +- name: 'gcr.io/cloud-builders/go' + args: ['install', './cmd/manager'] + env: ['PROJECT_ROOT=github.com/kubeflow/kfserving'] +- name: 'gcr.io/cloud-builders/docker' + args: ['build', '-t', 'gcr.io/kfserving/kfserving-controller:latest', '.'] +images: ['gcr.io/kfserving/kfserving-controller:latest'] \ No newline at end of file