-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add cloud build for master branch * Avoid updating latest tag * Skip test during maven install
- Loading branch information
1 parent
a73195a
commit c920e67
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
steps: | ||
- name: maven:3.6.0-jdk-8-slim | ||
args: ['mvn', 'clean', 'install', '-Drevision=$COMMIT_SHA', '-DskipTests'] | ||
id: build-jars | ||
|
||
- name: "gcr.io/cloud-builders/docker" | ||
args: ['build', '-t', 'gcr.io/$PROJECT_ID/feast-core:$COMMIT_SHA', '--build-arg', 'RELEASE=$COMMIT_SHA', '-f', './docker/core/Dockerfile', '.'] | ||
id: docker-core | ||
waitFor: | ||
- build-jars | ||
|
||
- name: "gcr.io/cloud-builders/docker" | ||
args: ['build', '-t', 'gcr.io/$PROJECT_ID/feast-serving:$COMMIT_SHA', '--build-arg', 'RELEASE=$COMMIT_SHA', '-f', './docker/serving/Dockerfile', '.'] | ||
id: docker-serving | ||
waitFor: | ||
- build-jars | ||
|
||
timeout: 1200s | ||
images: ['gcr.io/$PROJECT_ID/feast-core:$COMMIT_SHA', 'gcr.io/$PROJECT_ID/feast-serving:$COMMIT_SHA'] |