Skip to content

Commit

Permalink
Adds build triggers against head. Images will be tagged ":latest" (ku…
Browse files Browse the repository at this point in the history
…beflow#356)

* Added latest triggers

* Adds build triggers for latest

* uses latest instead of branch name
  • Loading branch information
ellistarn authored and k8s-ci-robot committed Sep 23, 2019
1 parent 486a213 commit fcf1a13
Show file tree
Hide file tree
Showing 17 changed files with 231 additions and 20 deletions.
9 changes: 5 additions & 4 deletions hack/generate-cloudbuild-triggers.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
CONFIGS=$(find $DIR/../release | grep yaml)
PROJECT=kfserving

# Not currently idempotent! Use with care. Will be resolve in July 2019
for CONFIG in $CONFIGS; do
gcloud alpha builds triggers create github --project kfserving --trigger-config $CONFIG
done
for i in $(gcloud alpha builds triggers list --project kfserving | grep ^id | cut -d ':' -f 2); do gcloud alpha builds triggers delete $i --project $PROJECT --quiet; done

for CONFIG in $CONFIGS; do
gcloud alpha builds triggers create github --project $PROJECT --trigger-config $CONFIG
done
26 changes: 26 additions & 0 deletions release/triggers/latest/alibi-explainer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: alibi-explainer-latest
substitutions:
_COMPONENT: "alibi-explainer"
_DOCKERFILE: "./python/alibiexplainer.Dockerfile"
_CONTEXT: "./python"
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
26 changes: 26 additions & 0 deletions release/triggers/latest/executor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: executor-latest
substitutions:
_COMPONENT: "executor"
_DOCKERFILE: "./executor.Dockerfile"
_CONTEXT: "."
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
26 changes: 26 additions & 0 deletions release/triggers/latest/kfserving-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: kfserving-controller-latest
substitutions:
_COMPONENT: "kfserving-controller"
_DOCKERFILE: "./Dockerfile"
_CONTEXT: "."
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
27 changes: 27 additions & 0 deletions release/triggers/latest/pytorch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
### Specify as necessary ###
name: pytorch-server-latest
substitutions:
_COMPONENT: "pytorchserver"
_DOCKERFILE: "./python/pytorch.Dockerfile"
_CONTEXT: "./python"
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
timeout: 1200s
26 changes: 26 additions & 0 deletions release/triggers/latest/sklearnserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: sklearn-server-latest
substitutions:
_COMPONENT: "sklearnserver"
_DOCKERFILE: "./python/sklearn.Dockerfile"
_CONTEXT: "./python"
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
26 changes: 26 additions & 0 deletions release/triggers/latest/storage-initalizer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: storage-initializer-latest
substitutions:
_COMPONENT: "storage-initializer"
_DOCKERFILE: "./python/storage-initializer.Dockerfile"
_CONTEXT: "./python"
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
26 changes: 26 additions & 0 deletions release/triggers/latest/tf2openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: tf2openapi-latest
substitutions:
_COMPONENT: "tf2openapi"
_DOCKERFILE: "./tools/tf2openapi/Dockerfile"
_CONTEXT: "."
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
26 changes: 26 additions & 0 deletions release/triggers/latest/xgbserver.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
### Specify as necessary ###
name: xgb-server-latest
substitutions:
_COMPONENT: "xgbserver"
_DOCKERFILE: "./python/xgb.Dockerfile"
_CONTEXT: "./python"
###########################
github:
owner: kubeflow
name: kfserving
push:
branch: master
###########################
build:
steps:
- name: docker
args:
- "build"
- "-t"
- "gcr.io/$REPO_NAME/${_COMPONENT}:latest"
- "-f"
- "${_DOCKERFILE}"
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:latest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: Alibi Explainer Autobuilder
name: alibi-explainer-tagged
substitutions:
_COMPONENT: "alibi-explainer"
_DOCKERFILE: "./python/alibiexplainer.Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: Executor Autobuilder
name: executor-tagged
substitutions:
_COMPONENT: "executor"
_DOCKERFILE: "./executor.Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: KFServing Controller Autobuilder
name: kfserving-controller-tagged
substitutions:
_COMPONENT: "kfserving-controller"
_DOCKERFILE: "./Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: Pytorch Server Autobuilder
name: pytorch-server-tagged
substitutions:
_COMPONENT: "pytorchserver"
_DOCKERFILE: "./python/pytorch.Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand All @@ -24,3 +24,4 @@ build:
- "${_CONTEXT}"
images:
- gcr.io/$REPO_NAME/${_COMPONENT}:$TAG_NAME
timeout: 1200s
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: Sklearn Server Autobuilder
name: sklearn-server-tagged
substitutions:
_COMPONENT: "sklearnserver"
_DOCKERFILE: "./python/sklearn.Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: Storage Initializer Autobuilder
name: storage-initializer-tagged
substitutions:
_COMPONENT: "storage-initializer"
_DOCKERFILE: "./python/storage-initializer.Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: TF2OpenAPI Autobuilder
name: tf2openapi-tagged
substitutions:
_COMPONENT: "tf2openapi"
_DOCKERFILE: "./tools/tf2openapi/Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
### Specify as necessary ###
description: XGB Server Autobuilder
name: xgb-server-tagged
substitutions:
_COMPONENT: "xgbserver"
_DOCKERFILE: "./python/xgb.Dockerfile"
Expand All @@ -10,7 +10,7 @@ github:
owner: kubeflow
name: kfserving
push:
tag: v0.*.*
tag: v*.*.*
###########################
build:
steps:
Expand Down

0 comments on commit fcf1a13

Please sign in to comment.