Skip to content

Commit

Permalink
Move build tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rejasupotaro committed Jan 2, 2025
1 parent b2dae0e commit d7b2fed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
REGION?=asia-northeast1
TRAINING_IMAGE_URI:=gcr.io/$(PROJECT_ID)/training:latest
INDEXING_IMAGE_URI:=gcr.io/$(PROJECT_ID)/indexing:latest
TEMPLATES_DIR:=templates

# -------------------------------------
# Execution Commands
# -------------------------------------
Expand All @@ -13,15 +8,3 @@ lint:
poetry run mypy src/amazon-product-search/src --explicit-package-bases --namespace-packages
poetry run mypy src/training/src --explicit-package-bases --namespace-packages
poetry run mypy src/indexing/src --explicit-package-bases --namespace-packages

.PHONY: build_training
build_training:
gcloud builds submit . \
--config=cloudbuild.yaml \
--substitutions=_DOCKERFILE=src/training/Dockerfile,_IMAGE=${TRAINING_IMAGE_URI}

.PHONY: build_indexing
build_indexing:
gcloud builds submit . \
--config=cloudbuild.yaml \
--substitutions=_DOCKERFILE=src/indexing/Dockerfile,_IMAGE=${INDEXING_IMAGE_URI}
7 changes: 7 additions & 0 deletions src/indexing/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INDEXING_IMAGE_URI:=gcr.io/$(PROJECT_ID)/indexing:latest

.PHONY: build
build_indexing:
gcloud builds submit . \
--config=cloudbuild.yaml \
--substitutions=_IMAGE=${INDEXING_IMAGE_URI}

0 comments on commit d7b2fed

Please sign in to comment.