From 9db277accb62acf7c55955535dccedd69cd01163 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Wed, 22 Jan 2025 09:12:53 +0200 Subject: [PATCH] Fetch tags to get appropriate codegate version on dev We need to rely on the tags to get the right version for codegate. This fetches them before building the image locally. Note that this is only for development. Signed-off-by: Juan Antonio Osorio --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 157d01bf..0a0999ba 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,9 @@ build: clean test poetry build image-build: + @echo "Fetching tags to get right version number..." + @git fetch -t + @echo "Building container..." DOCKER_BUILDKIT=1 $(CONTAINER_BUILD) \ -f Dockerfile \ --build-arg LATEST_RELEASE=$(shell curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | grep '"zipball_url":' | cut -d '"' -f 4) \