From 7c23540a2c6e8feac7e324c33f26824b93b35466 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Wed, 6 May 2026 02:54:21 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20action.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 停止服務時,同時移除 Volume --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 11d5dd7..d691053 100644 --- a/action.yml +++ b/action.yml @@ -12,11 +12,11 @@ runs: uses: actions/checkout@v6 - name: 停止服務 if: ${{ inputs.SERVICE_NAME != '' }} - run: docker compose down ${{ inputs.SERVICE_NAME }} + run: docker compose down --volumes ${{ inputs.SERVICE_NAME }} shell: bash - name: 停止服務 if: ${{ inputs.SERVICE_NAME == '' }} - run: docker compose down + run: docker compose down --volumes shell: bash - name: 啟動服務 if: ${{ inputs.SERVICE_NAME != '' }}