mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
fix: split REGISTRY into BUILDER_REGISTRY and REGISTRY (#395)
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
PLUGIN_NAME ?= hello-world
|
PLUGIN_NAME ?= hello-world
|
||||||
REGISTRY ?= higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/
|
BUILDER_REGISTRY ?= higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/
|
||||||
|
REGISTRY ?=
|
||||||
GO_VERSION ?= 1.19
|
GO_VERSION ?= 1.19
|
||||||
TINYGO_VERSION ?= 0.25.0
|
TINYGO_VERSION ?= 0.25.0
|
||||||
ORAS_VERSION ?= 1.0.0
|
ORAS_VERSION ?= 1.0.0
|
||||||
HIGRESS_VERSION ?= 1.0.0-rc
|
HIGRESS_VERSION ?= 1.0.0-rc
|
||||||
USE_HIGRESS_TINYGO ?= true
|
USE_HIGRESS_TINYGO ?= true
|
||||||
BUILDER ?= ${REGISTRY}wasm-go-builder:go${GO_VERSION}-tinygo${TINYGO_VERSION}-oras${ORAS_VERSION}
|
BUILDER ?= ${BUILDER_REGISTRY}wasm-go-builder:go${GO_VERSION}-tinygo${TINYGO_VERSION}-oras${ORAS_VERSION}
|
||||||
BUILD_TIME := $(shell date "+%Y%m%d-%H%M%S")
|
BUILD_TIME := $(shell date "+%Y%m%d-%H%M%S")
|
||||||
COMMIT_ID := $(shell git rev-parse --short HEAD 2>/dev/null)
|
COMMIT_ID := $(shell git rev-parse --short HEAD 2>/dev/null)
|
||||||
IMAGE_TAG = $(if $(strip $(PLUGIN_VERSION)),${PLUGIN_VERSION},${BUILD_TIME}-${COMMIT_ID})
|
IMAGE_TAG = $(if $(strip $(PLUGIN_VERSION)),${PLUGIN_VERSION},${BUILD_TIME}-${COMMIT_ID})
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ You can also use `make build-push` to build and push the image at the same time.
|
|||||||
|
|
||||||
### Environmental parameters
|
### Environmental parameters
|
||||||
|
|
||||||
| Name | Optional/Required | Default | 含义 |
|
| Name | Optional/Required | Default | meaning |
|
||||||
|---------------|-------------------|--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
|
|---------------|---------------|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `PLUGIN_NAME` | Optional | hello-world | The name of the plugin to build. |
|
| `PLUGIN_NAME` | Optional | hello-world | The name of the plugin to build. |
|
||||||
| `REGISTRY` | Optional | empty | The regitstry address of the generated image, e.g. `example.registry.io/my-name/`. Note that the REGISTRY value should end with /. |
|
| `REGISTRY` | Optional | empty | The registry address of the generated image, e.g. `example.registry.io/my-name/`. Note that the REGISTRY value should end with /. |
|
||||||
| `IMG` | Optional | If it is empty, it is generated based on the repository address, plugin name, build time, and git commit id. | The generated image tag will override the `REGISTRY` parameter if it is not empty. |
|
| `IMG` | Optional | If it is empty, it is generated based on the repository address, plugin name, build time, and git commit id. | The generated image tag will override the `REGISTRY` parameter if it is not empty. |
|
||||||
|
|
||||||
## Build on local yourself
|
## Build on local yourself
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user