chore(ci): optimize docker publish workflow
This commit is contained in:
+1
-11
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user