forked from datacommonsorg/import
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
24 lines (19 loc) · 785 Bytes
/
Copy pathcloudbuild.yaml
File metadata and controls
24 lines (19 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
steps:
- name: 'maven:3.9.1'
args: ['package']
entrypoint: mvn
secretEnv:
- DC_API_KEY
- name: 'gcr.io/cloud-builders/gcloud'
args: ['storage', 'cp', 'tool/target/datacommons-import-tool-0.1-SNAPSHOT-jar-with-dependencies.jar', 'gs://${_GCS_BUCKET}/import_tools/import-tool.jar']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['builds', 'triggers', 'run', 'dc-import-executor', '--branch=master', '--substitutions', '_DOCKER_IMAGE=${_DOCKER_IMAGE}']
substitutions:
_GCS_BUCKET: 'datacommons_public'
_DOCKER_IMAGE: 'us-docker.pkg.dev/${PROJECT_ID}/gcr.io/dc-import-executor'
options:
logging: CLOUD_LOGGING_ONLY
availableSecrets:
secretManager:
- versionName: projects/$PROJECT_ID/secrets/dc-api-key/versions/latest
env: DC_API_KEY