Skip to content

Commit a2b53b3

Browse files
authored
Fetch tags to get appropriate codegate version on dev (#705)
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 <[email protected]>
1 parent 326b55d commit a2b53b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ build: clean test
3232
poetry build
3333

3434
image-build:
35+
@echo "Fetching tags to get right version number..."
36+
@git fetch -t
37+
@echo "Building container..."
3538
DOCKER_BUILDKIT=1 $(CONTAINER_BUILD) \
3639
-f Dockerfile \
3740
--build-arg LATEST_RELEASE=$(shell curl -s "https://api.github.com/repos/stacklok/codegate-ui/releases/latest" | grep '"zipball_url":' | cut -d '"' -f 4) \

0 commit comments

Comments
 (0)