forked from zenml-io/zenml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
20 lines (20 loc) · 982 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
steps:
# build base image with tag
- name : 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'eu.gcr.io/maiot-zenml/zenml:base-$TAG_NAME', '-f', 'zenml/docker/base.Dockerfile', '.']
# push base image
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'eu.gcr.io/maiot-zenml/zenml:base-$TAG_NAME']
# build CUDA image with tag
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'eu.gcr.io/maiot-zenml/zenml:cuda-$TAG_NAME', '-f', 'zenml/docker/cuda.Dockerfile', '.']
# push CUDA image
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'eu.gcr.io/maiot-zenml/zenml:cuda-$TAG_NAME']
# build dataflow image with tag
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '-t', 'eu.gcr.io/maiot-zenml/zenml:dataflow-$TAG_NAME', '-f', 'zenml/docker/dataflow.Dockerfile', '.' ]
# push dataflow image
- name: 'gcr.io/cloud-builders/docker'
args: [ 'push', 'eu.gcr.io/maiot-zenml/zenml:dataflow-$TAG_NAME' ]
timeout: 3600s