Skip to content

Commit

Permalink
also build and push cubestore image
Browse files Browse the repository at this point in the history
  • Loading branch information
igorcalabria committed Oct 5, 2023
1 parent c785219 commit 7c367e1
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 7c367e1

Please sign in to comment.