-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.yaml
31 lines (25 loc) · 1.15 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
steps:
# upload dataflow src file to bucket
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '-r', './src', 'gs://bkt-n-ml-storage-akdv']
- name: 'gcr.io/cloud-builders/gsutil'
args: ['cp', '-r', './data', 'gs://bkt-n-ml-storage-akdv']
# compile pipeline
- name: 'us-central1-docker.pkg.dev/prj-c-bu3artifacts-zfe5/c-publish-artifacts/vertexpipeline:v2'
entrypoint: 'python'
args: ['compile_pipeline.py']
id: 'compile_job'
# run pipeline
- name: 'us-central1-docker.pkg.dev/prj-c-bu3artifacts-zfe5/c-publish-artifacts/vertexpipeline:v2'
entrypoint: 'python'
args: ['runpipeline.py']
id: 'run_job'
waitFor: ['compile_job']
# # upload pipeline yaml to composer
# - name: 'gcr.io/cloud-builders/gsutil'
# args: ['cp', './common/vertex-ai-pipeline/pipeline_package.yaml', 'gs://us-central1-d-isolated-comp-8f58e4b5-bucket/dags/common/vertex-ai-pipeline/']
# id: 'upload_composer_file'
# # upload pipeline dag to composer
# - name: 'gcr.io/cloud-builders/gsutil'
# args: ['cp', './composer/dags/dag.py', 'gs://us-central1-d-isolated-comp-8f58e4b5-bucket/dags/']
# id: 'upload dag'