diff --git a/.github/workflows/deploy-with-docker.yml b/.github/workflows/deploy-with-docker.yml index 8cd08af216..5fa7e9d741 100644 --- a/.github/workflows/deploy-with-docker.yml +++ b/.github/workflows/deploy-with-docker.yml @@ -20,7 +20,7 @@ jobs: - name: Build Docker Image run: | - docker build -t dashboard:ci . + docker build -t dashboard:ci . --build-arg APISIX_DASHBOARD_VERSION=master - name: Modify ETCD IP run: | diff --git a/docs/deploy-with-docker.md b/docs/deploy-with-docker.md index 1e747bd84c..185fbefefd 100644 --- a/docs/deploy-with-docker.md +++ b/docs/deploy-with-docker.md @@ -38,6 +38,10 @@ $ docker build -t apisix-dashboard:$tag . # For users in mainland China, the `ENABLE_PROXY` parameter can be provided to speed up module downloads. $ docker build -t apisix-dashboard:$tag . --build-arg ENABLE_PROXY=true + +# If you want to use the latest codes to build, you can specify the `APISIX_DASHBOARD_VERSION` parameter to `master`. +# This parameter can also be specified as branch name of a specific version, such as `v2.0`. +$ docker build -t apisix-dashboard:$tag . --build-arg APISIX_DASHBOARD_VERSION=master ``` ## Launch diff --git a/docs/deploy-with-docker.zh-CN.md b/docs/deploy-with-docker.zh-CN.md index 4eecd0f4d3..fb7c3622a6 100644 --- a/docs/deploy-with-docker.zh-CN.md +++ b/docs/deploy-with-docker.zh-CN.md @@ -38,6 +38,9 @@ $ docker build -t apisix-dashboard:$tag . # 对于中国大陆的用户,可启用 `ENABLE_PROXY` 参数加快模块下载速度。 $ docker build -t apisix-dashboard:$tag . --build-arg ENABLE_PROXY=true + +# 如果需要使用最新代码构建,可启用 `APISIX_DASHBOARD_VERSION` 参数指定为 `master` ,此参数也可以指定为其他版本的分支名,如 `v2.0` 。 +$ docker build -t apisix-dashboard:$tag . --build-arg APISIX_DASHBOARD_VERSION=master ``` ## 启动