chore(ci): optimize docker publish workflow

This commit is contained in:
yinjianm
2026-04-18 00:45:00 +08:00
parent cd5e00bbfb
commit 964d055021
7 changed files with 210 additions and 29 deletions
+1 -11
View File
@@ -16,17 +16,7 @@ WORKDIR /www
COPY .docker /
# Add build arguments
ARG CACHEBUST
ARG REPO_URL
ARG BRANCH_NAME
RUN echo "Attempting to clone branch: ${BRANCH_NAME} from ${REPO_URL} with CACHEBUST: ${CACHEBUST}" && \
rm -rf ./* && \
rm -rf .git && \
git config --global --add safe.directory /www && \
git clone --depth 1 --branch ${BRANCH_NAME} ${REPO_URL} . && \
git submodule update --init --recursive --force
COPY . /www
COPY .docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf