diff --git a/.drone.yml b/.drone.yml index 961a2db..e8ae39b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,7 +30,7 @@ steps: - cd /mnt/app/build/docker - chmod +x deploy.sh - sh deploy.sh stop - - sh deploy.sh rm + - sh deploy.sh build - sh deploy.sh module - docker ps diff --git a/docker/deploy.sh b/docker/deploy.sh index ec0af58..760a8f9 100644 --- a/docker/deploy.sh +++ b/docker/deploy.sh @@ -53,6 +53,10 @@ rm(){ docker-compose rm ds-gateway ds-miniapps } +build(){ + docker-compose build ds-gateway ds-miniapps +} + # 根据输入参数,选择执行对应方法,不输入则执行使用说明 case "$1" in @@ -77,6 +81,9 @@ case "$1" in "rmbase") rmbase ;; +"build") + build +;; *) usage ;;