[Release] Various fixes to release script (#3918)

* Update kustomize/base/params.env

* fix

* kfp sdk requirement updated to kfp_api_server<2.0.0

* Fix major minor parsing

* Also fix cloudbuild.yaml
This commit is contained in:
Yuan (Bob) Gong 2020-06-05 13:32:21 +08:00 committed by GitHub
parent 0324b2cac8
commit b12023ef3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 7 deletions

View File

@ -228,7 +228,8 @@ steps:
- -ceux
- |
# Parse major minor version and save to a file for reusing in other steps.
cat /workspace/VERSION | sed -e "s#[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)#\1.\2#" > /workspace/mm.ver
# e.g. 1.0.0-rc.1 and 1.0.1 are parsed as 1.0
echo $TAG_NAME | sed -e "s#\([0-9]\+[.][0-9]\+\)[.].*#\1#" > /workspace/mm.ver
# Tag for Hosted - Tag to hosted folder with MKP friendly name
- id: 'tagForHosted'

View File

@ -22,7 +22,8 @@ steps:
- -ceux
- |
# Parse major minor version and save to a file for reusing in other steps.
echo $TAG_NAME | sed -e "s#[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)#\1.\2#" > /workspace/mm.ver
# e.g. 1.0.0-rc.1 and 1.0.1 are parsed as 1.0
echo $TAG_NAME | sed -e "s#\([0-9]\+[.][0-9]\+\)[.].*#\1#" > /workspace/mm.ver
# Pull and retag images for pipeline components
- id: 'retagComponentImages'

View File

@ -4,6 +4,7 @@ WIP: this document is still incomplete.
## Common Prerequisites
* OS: Linux (MacOS not supported yet due to different behavior of sed)
* Permissions needed
* Can create a branch in github.com/kubeflow/pipelines
* Tools that should be in your `$PATH`

View File

@ -27,3 +27,6 @@ fi
echo "This release script uses yq, it can be downloaded at https://github.com/mikefarah/yq/releases/tag/3.3.0"
yq w -i "$DIR/../base/kustomization.yaml" images[*].newTag "$TAG_NAME"
yq w -i "$DIR/../env/gcp/inverse-proxy/kustomization.yaml" images[*].newTag "$TAG_NAME"
# Note, this only works in linux. TODO: make it MacOS sed compatible.
sed -i.bak -e "s|appVersion=.\+|appVersion=$TAG_NAME|g" "$DIR/../base/params.env"

View File

@ -10,7 +10,7 @@ jsonschema>=3.0.1
kubernetes>=8.0.0, <12.0.0
# kfp.Client
kfp-server-api>=0.2.5, <0.4.0 #Update the upper version whenever a new version of the kfp-server-api package is released. Update the lower version when there is a breaking change in kfp-server-api, or kfp sdk depends on new api changes in kfp-server-api.
kfp-server-api>=0.2.5, <2.0.0
# kfp.Client GCP auth
google-cloud-storage>=1.13.0

View File

@ -27,10 +27,11 @@ REQUIRES = [
'requests_toolbelt>=0.8.0',
'cloudpickle',
# Update the upper version whenever a new major version of the
# kfp-server-api package is released. Update the lower version when there is
# a breaking change in kfp-server-api, or kfp sdk depends on new api changes
# in kfp-server-api.
'kfp-server-api>=0.2.5, <0.6.0',
# kfp-server-api package is released.
# Update the lower version when kfp sdk depends on new apis/fields in
# kfp-server-api.
# Note, please also update ./requirements.in
'kfp-server-api>=0.2.5, <2.0.0',
'jsonschema >= 3.0.1',
'tabulate',
'click',