From 8ce717c59f679db5283d24b4f7f38ba97e486226 Mon Sep 17 00:00:00 2001 From: Igor Calabria Date: Fri, 1 Sep 2023 14:34:24 -0300 Subject: [PATCH] also build and push cubestore image --- Makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b7cc6b7418ba5..ff094a9de7f88 100644 --- a/Makefile +++ b/Makefile @@ -4,11 +4,18 @@ DIRTY_FLAG := $(shell git diff HEAD --quiet || echo '-dirty') IMAGE_VERSION=${CUBE_VERSION}-${GIT_REV}${DIRTY_FLAG} IMAGE=889818756387.dkr.ecr.us-east-1.amazonaws.com/incognia/cube:${IMAGE_VERSION} +CUBESTORE_IMAGE=889818756387.dkr.ecr.us-east-1.amazonaws.com/incognia/cubestore:${IMAGE_VERSION} -.PHONY: build push +.PHONY: build push cubestore/build cubestore/push -build: +build: cubestore/build docker build -t ${IMAGE} . -f incognia.Dockerfile --build-arg IMAGE_VERSION=${IMAGE_VERSION} -push: build +cubestore/build: + docker build -t ${CUBESTORE_IMAGE} rust/cubestore/ + +cubestore/push: + docker push ${CUBESTORE_IMAGE} + +push: build cubestore/push docker push ${IMAGE}