Skip to content

Commit

Permalink
centraldashboard(make): Use correct dir (#6960) (#6972)
Browse files Browse the repository at this point in the history
Previously the app would not use the correct directory when running the
docker buildx command, which resulted in the image to fail to get built.

Signed-off-by: Kimonas Sotirchos <kimwnasptd@arrikto.com>
  • Loading branch information
kimwnasptd committed Feb 15, 2023
1 parent abb3085 commit c6b34c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/centraldashboard/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
IMG ?= centraldashboard
TAG ?= $(shell git describe --tags --always --dirty)
COMMIT = $(shell git rev-parse HEAD)
DOCKERFILE ?= centraldashboard/Dockerfile
DOCKERFILE ?= Dockerfile
ARCH ?= linux/amd64


Expand Down Expand Up @@ -32,12 +32,12 @@ docker-push:

.PHONY: docker-build-multi-arch
docker-build-multi-arch: ## Build multi-arch docker images with docker buildx
cd ../ && docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} -f ${DOCKERFILE} .
docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} -f ${DOCKERFILE} .


.PHONY: docker-build-push-multi-arch
docker-build-push-multi-arch: ## Build multi-arch docker images with docker buildx and push to docker registry
cd ../ && docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} --push -f ${DOCKERFILE} .
docker-build-push-multi-arch: ## Build multi-arch docker images with docker buildx and push to docker registry
docker buildx build --platform ${ARCH} --tag ${IMG}:${TAG} --push -f ${DOCKERFILE} .

# Build but don't attach the latest tag. This allows manual testing/inspection of the image
# first.
Expand Down

0 comments on commit c6b34c7

Please sign in to comment.