fix(dashboard): use git clone with branch instead of raw SHA fetch

GitHub does not allow fetching arbitrary commits by SHA without
uploadpack.allowReachableSHA1InWants. Replace the git init + fetch
approach with a simple shallow clone of the main branch.

Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
This commit is contained in:
IvanHunters committed 2026-04-30 13:04:50 +03:00
1 parent dbf7772f8a
commit 6fe9dcc1d1
1 file changed
+2 -5
+2 -5
View File
@@ -11,16 +11,13 @@ include ../../../hack/package.mk
image: image-console image-token-proxy
CONSOLE_REPO ?= https://github.com/cozystack/cozystack-ui.git
CONSOLE_REF ?= dd1ff0bdbd5e6e2fb6614fd1d831c4cb5c8f8025
CONSOLE_BRANCH ?= main
image-console: clone-console build-console update-values-console clean-console
clone-console:
rm -rf .tmp-cozystack-ui
git init .tmp-cozystack-ui
git -C .tmp-cozystack-ui remote add origin $(CONSOLE_REPO)
git -C .tmp-cozystack-ui fetch --depth 1 origin $(CONSOLE_REF)
git -C .tmp-cozystack-ui checkout FETCH_HEAD
git clone --depth 1 --branch $(CONSOLE_BRANCH) $(CONSOLE_REPO) .tmp-cozystack-ui
build-console:
docker buildx build .tmp-cozystack-ui \