From d31ec4726c769042f539a10b4c7b092776af7921 Mon Sep 17 00:00:00 2001 From: dashan Date: Sun, 26 Nov 2023 14:11:31 +0800 Subject: [PATCH] config:docker --- .drone.yml | 2 +- docker/deploy.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 ;;