mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-05 12:40:52 +08:00
chore: update docker-publish.yaml and Dockerfile
This commit is contained in:
5
.github/workflows/docker-publish.yml
vendored
5
.github/workflows/docker-publish.yml
vendored
@@ -89,7 +89,10 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
build-args: |
|
||||
BUILDKIT_INLINE_CACHE=1
|
||||
BUILDKIT_MULTI_PLATFORM=1
|
||||
BUILDKIT_MULTI_PLATFORM=1
|
||||
CACHEBUST=${{ github.sha }}
|
||||
REPO_URL=https://github.com/${{ github.repository }}
|
||||
BRANCH_NAME=${{ github.ref_name }}
|
||||
provenance: false
|
||||
outputs: type=registry,push=true
|
||||
allow: |
|
||||
|
||||
16
Dockerfile
16
Dockerfile
@@ -16,12 +16,16 @@ WORKDIR /www
|
||||
|
||||
COPY .docker /
|
||||
|
||||
# Add build argument for cache busting
|
||||
ARG CACHEBUST=1
|
||||
ARG REPO_URL=https://github.com/cedar2025/Xboard
|
||||
RUN git config --global --add safe.directory /www && \
|
||||
echo "Cache bust: ${CACHEBUST}" && \
|
||||
git clone --depth 1 ${REPO_URL} .
|
||||
# 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} .
|
||||
|
||||
COPY .docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user