更新 action.yml

停止服務時,同時移除 Volume
This commit is contained in:
2026-05-06 02:54:21 +00:00
parent 133101ec23
commit 7c23540a2c
+2 -2
View File
@@ -12,11 +12,11 @@ runs:
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: 停止服務 - name: 停止服務
if: ${{ inputs.SERVICE_NAME != '' }} if: ${{ inputs.SERVICE_NAME != '' }}
run: docker compose down ${{ inputs.SERVICE_NAME }} run: docker compose down --volumes ${{ inputs.SERVICE_NAME }}
shell: bash shell: bash
- name: 停止服務 - name: 停止服務
if: ${{ inputs.SERVICE_NAME == '' }} if: ${{ inputs.SERVICE_NAME == '' }}
run: docker compose down run: docker compose down --volumes
shell: bash shell: bash
- name: 啟動服務 - name: 啟動服務
if: ${{ inputs.SERVICE_NAME != '' }} if: ${{ inputs.SERVICE_NAME != '' }}