-
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 config * Fix images list * Fix cloudbuild yaml build step args * Collapse image tags * Fix waitFor * Hard code tag for testing purposes * Remove hardcoded tags, and skiptests flag
- Loading branch information
1 parent
7b9dfa0
commit 6dc20dc
Showing
5 changed files
with
38 additions
and
3 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
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
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,10 @@ | ||
resource "google_cloudbuild_trigger" "build_trigger" { | ||
project = "${var.gcp_project}" | ||
trigger_template { | ||
branch_name = "master" | ||
tag_name = "^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$" | ||
project = "${var.gcp_project}" | ||
repo_name = "http://github.com/gojek/feast" | ||
} | ||
filename = "testing/tf/cloud-build/cloudbuild.yaml" | ||
} |
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,20 @@ | ||
steps: | ||
- name: maven:3.6.0-jdk-8-slim | ||
args: ['mvn', 'clean', 'install', '-Drevision=$TAG_NAME'] | ||
id: build-jars | ||
|
||
- name: "gcr.io/cloud-builders/docker" | ||
args: ['build', '-t', 'gcr.io/$PROJECT_ID/feast-core:$TAG_NAME', '-t', 'gcr.io/$PROJECT_ID/feast-core:latest', '--build-arg', 'RELEASE=$TAG_NAME', '-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:$TAG_NAME', '-t', 'gcr.io/$PROJECT_ID/feast-serving:latest', '--build-arg', 'RELEASE=$TAG_NAME', '-f', './docker/serving/Dockerfile', '.'] | ||
id: docker-serving | ||
waitFor: | ||
|
||
- build-jars | ||
|
||
timeout: 1200s | ||
images: ['gcr.io/$PROJECT_ID/feast-core:latest', 'gcr.io/$PROJECT_ID/feast-core:$TAG_NAME', 'gcr.io/$PROJECT_ID/feast-serving:latest', 'gcr.io/$PROJECT_ID/feast-serving:$TAG_NAME'] |
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,3 @@ | ||
variable "gcp_project" { | ||
description = "GCP Project name" | ||
} |