Merge pull request #20 from alswl/feat/mirror

feat: enable mirror arg when build
This commit is contained in:
Jingchao 2023-07-31 08:27:51 +08:00 committed by GitHub
commit 94d3682623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -46,6 +46,8 @@ PATCH_VERSION = 0
BUILD_VERSION = $(COMMIT)
VERSION ?= v$(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_VERSION)-$(BUILD_VERSION)
CHINA_MIRROR ?= false
# Support gsed on OSX (installed via brew), falling back to sed. On Linux
# systems gsed won't be installed, so will use sed as expected.
SED ?= $(shell which gsed 2>/dev/null || which sed)
@ -68,6 +70,7 @@ images: ## Build docker images
docker build \
-t $${image} \
--build-arg COMMIT=$(COMMIT) \
--build-arg CHINA_MIRROR=$(CHINA_MIRROR) \
--progress=plain \
-f ./$${target}/Dockerfile $${target}; \
done; \

@ -1 +1 @@
Subproject commit c74d0415e2e69a1e216088a0d9edd29bf16170bc
Subproject commit e3219306d1ef8db6981e4918d73a3c957c025340