Skip to content

Commit 95f2612

Browse files
nic-chenjuzhiyuan
andauthored
CD: auto deploy codes on the master branch to the online demo (#929)
* fix: should deploy code in master branch to the online demo * ci: take a test, should remove pr trigger later * ci: remove pr trigger * doc: fix description about build docker image in doc * fix typo Co-authored-by: 琚致远 <[email protected]>
1 parent 47d67d6 commit 95f2612

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/deploy-with-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Build Docker Image
2222
run: |
23-
docker build -t dashboard:ci .
23+
docker build -t dashboard:ci . --build-arg APISIX_DASHBOARD_VERSION=master
2424
2525
- name: Modify ETCD IP
2626
run: |

docs/deploy-with-docker.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ $ docker build -t apisix-dashboard:$tag .
3838

3939
# For users in mainland China, the `ENABLE_PROXY` parameter can be provided to speed up module downloads.
4040
$ docker build -t apisix-dashboard:$tag . --build-arg ENABLE_PROXY=true
41+
42+
# If you want to use the latest codes to build, you can specify the `APISIX_DASHBOARD_VERSION` parameter to `master`.
43+
# This parameter can also be specified as branch name of a specific version, such as `v2.0`.
44+
$ docker build -t apisix-dashboard:$tag . --build-arg APISIX_DASHBOARD_VERSION=master
4145
```
4246

4347
## Launch

docs/deploy-with-docker.zh-CN.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ $ docker build -t apisix-dashboard:$tag .
3838

3939
# 对于中国大陆的用户,可启用 `ENABLE_PROXY` 参数加快模块下载速度。
4040
$ docker build -t apisix-dashboard:$tag . --build-arg ENABLE_PROXY=true
41+
42+
# 如果需要使用最新代码构建,可启用 `APISIX_DASHBOARD_VERSION` 参数指定为 `master` ,此参数也可以指定为其他版本的分支名,如 `v2.0` 。
43+
$ docker build -t apisix-dashboard:$tag . --build-arg APISIX_DASHBOARD_VERSION=master
4144
```
4245

4346
## 启动

0 commit comments

Comments
 (0)