mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-09 14:02:56 +09:00
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:
1 file changed
+2
-5
@@ -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 \
|
||||
|
||||
Reference in new issue
Block a user