-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
24 lines (23 loc) · 857 Bytes
/
cloudbuild.yaml
File metadata and controls
24 lines (23 loc) · 857 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: 'gcr.io/cloud-builders/mvn'
entrypoint: 'bash'
# mvn verify does build, run unit tests and integration tests
args:
- -c
- |
mvn verify \
-Dclirr.skip=true \
-DskipITs=false \
-DprojectId="$${PROJECT_ID}" \
-DfeatureOnlineStoreId="$${FOS_ID}" \
-DfeatureViewId="$${FV_ID}"
secretEnv: ['PROJECT_ID', 'FOS_ID', 'FV_ID']
# Test parameters such as project ID, FOS ID, FV ID are stored in the Secret Manager.
availableSecrets:
secretManager:
- versionName: projects/692785347650/secrets/github_integration_test_project/versions/1
env: 'PROJECT_ID'
- versionName: projects/692785347650/secrets/feature_online_store_id/versions/1
env: 'FOS_ID'
- versionName: projects/692785347650/secrets/feature_view_id/versions/1
env: 'FV_ID'