[FIX] 修正 CI/CD 掛載錯誤,增加 acl.conf 目錄清理步驟
This commit is contained in:
parent
32bc13ac1b
commit
bb426abbc0
@ -17,6 +17,16 @@ jobs:
|
|||||||
# 從宿主機固定路徑把持久化的 .env 移回當前工作目錄,供 docker compose 使用
|
# 從宿主機固定路徑把持久化的 .env 移回當前工作目錄,供 docker compose 使用
|
||||||
docker run --rm -v /workspace/mama/star-cloud/.env:/tmp/.env:ro busybox cat /tmp/.env > .env
|
docker run --rm -v /workspace/mama/star-cloud/.env:/tmp/.env:ro busybox cat /tmp/.env > .env
|
||||||
|
|
||||||
|
- name: Step 0.1 - Fix potential directory-instead-of-file mounts
|
||||||
|
run: |
|
||||||
|
# 如果 acl.conf 是一個目錄,將其刪除,以免妨礙 docker compose 掛載檔案
|
||||||
|
if [ -d "docker/emqx/acl.conf" ]; then
|
||||||
|
echo "Found docker/emqx/acl.conf as a directory, removing it..."
|
||||||
|
rm -rf "docker/emqx/acl.conf"
|
||||||
|
fi
|
||||||
|
# 確保父目錄存在
|
||||||
|
mkdir -p docker/emqx
|
||||||
|
|
||||||
|
|
||||||
- name: Step 1 - Build & Deploy Containers
|
- name: Step 1 - Build & Deploy Containers
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user