-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcloudbuild.yaml
44 lines (40 loc) · 4.54 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args: ["cp", "metadata/*", "gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.SpannerToText","-Pdataflow-runner",
"-Dexec.args=--project=$PROJECT_ID --stagingLocation=gs://$PROJECT_ID-templates/staging --templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/SpannerToText --runner=DataflowRunner"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.SpannerToAvro","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/SpannerToAvro' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.SpannerToBigQuery","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/SpannerToBigQuery' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.SpannerToSpanner","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/SpannerToSpanner' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.AvroToSpanner","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/AvroToSpanner' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.BigQueryToSpanner","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/BigQueryToSpanner' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.BigQueryToDatastore","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/BigQueryToDatastore' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.JdbcToAvro","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/JdbcToAvro' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/mvn'
args: ["compile", "-f", "pom.xml", "exec:java","-Dexec.mainClass=net.orfeon.cloud.dataflow.templates.ml.bigquery.SpannerToBQMLToSpanner","-Pdataflow-runner",
"-Dexec.args='--project=$PROJECT_ID' '--stagingLocation=gs://$PROJECT_ID-templates/staging' '--templateLocation=gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/SpannerToBQMLToSpanner' '--runner=DataflowRunner'"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["cp", "gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/*", "gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}/"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["cp", "gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/*", "gs://$PROJECT_ID-templates/${_VERSION_MAJOR}/"]
- name: 'gcr.io/cloud-builders/gsutil'
args: ["cp", "gs://$PROJECT_ID-templates/${_VERSION_MAJOR}.${_VERSION_MINOR}.${_VERSION_PATCH}/*", "gs://$PROJECT_ID-templates/latest/"]
substitutions:
_VERSION_MAJOR: "0"
_VERSION_MINOR: "2"
_VERSION_PATCH: "2"