Skip to content

Commit 777b104

Browse files
committed
chore: add build and push action to makefile
1 parent 4d2f5f6 commit 777b104

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lint:
44
cd rag-core-library;make lint
55
cd admin-backend;make lint
66
cd rag-backend;make lint
7-
cd document-extractor;make lint
7+
cd document-extractor;make lint
88

99
update-lock:
1010
cd rag-core-library;make update-lock
@@ -16,4 +16,14 @@ black:
1616
cd rag-core-library;make black
1717
cd admin-backend;black .
1818
cd rag-backend;black .
19-
cd document-extractor;black .
19+
cd document-extractor;black .
20+
21+
IMAGE_TAG?=v1.0.0
22+
REGISTRY?=
23+
24+
build_and_push:
25+
docker buildx build --platform linux/amd64 -t $(REGISTRY)/rag-backend:$(IMAGE_TAG) -f rag-backend/Dockerfile --push .
26+
docker buildx build --platform linux/amd64 -t $(REGISTRY)/admin-backend:$(IMAGE_TAG) -f admin-backend/Dockerfile --push .
27+
docker buildx build --platform linux/amd64 -t $(REGISTRY)/document-extractor:$(IMAGE_TAG) -f document-extractor/Dockerfile --push .
28+
docker buildx build --platform linux/amd64 -t $(REGISTRY)/frontend:$(IMAGE_TAG) -f frontend/apps/chat-app/Dockerfile --push .
29+
docker buildx build --platform linux/amd64 -t $(REGISTRY)/admin-frontend:$(IMAGE_TAG) -f frontend/apps/admin-app/Dockerfile --push .

0 commit comments

Comments
 (0)