mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(CORE/docker): cachebust for the client data
This commit is contained in:
1
.github/workflows/docker_build.yml
vendored
1
.github/workflows/docker_build.yml
vendored
@@ -57,6 +57,7 @@ jobs:
|
|||||||
DOCKER_CLIENT_TIMEOUT: 400
|
DOCKER_CLIENT_TIMEOUT: 400
|
||||||
COMPOSE_HTTP_TIMEOUT: 400
|
COMPOSE_HTTP_TIMEOUT: 400
|
||||||
run: |
|
run: |
|
||||||
|
export CACHEBUST=$EPOCHSECONDS
|
||||||
export DOCKER_USER_ID=$(id -u)
|
export DOCKER_USER_ID=$(id -u)
|
||||||
export DOCKER_GROUP_ID=$(id -u)
|
export DOCKER_GROUP_ID=$(id -u)
|
||||||
# pull the images first to load the docker cache layers
|
# pull the images first to load the docker cache layers
|
||||||
|
|||||||
@@ -283,6 +283,7 @@ ENV DATAPATH=/azerothcore/env/dist/data
|
|||||||
ENV DATAPATH_ZIP=/tmp/data.zip
|
ENV DATAPATH_ZIP=/tmp/data.zip
|
||||||
|
|
||||||
RUN mkdir -p "$DATAPATH"
|
RUN mkdir -p "$DATAPATH"
|
||||||
|
ARG CACHEBUST=1
|
||||||
RUN --mount=type=bind,target=/azerothcore-temp,readwrite --mount=type=cache,target=/azerothcore/env/dist/data /azerothcore-temp/acore.sh client-data && chown -R $DOCKER_USER:$DOCKER_USER /azerothcore
|
RUN --mount=type=bind,target=/azerothcore-temp,readwrite --mount=type=cache,target=/azerothcore/env/dist/data /azerothcore-temp/acore.sh client-data && chown -R $DOCKER_USER:$DOCKER_USER /azerothcore
|
||||||
|
|
||||||
USER $DOCKER_USER
|
USER $DOCKER_USER
|
||||||
|
|||||||
@@ -364,6 +364,7 @@ services:
|
|||||||
USER_ID: ${DOCKER_USER_ID:-1000}
|
USER_ID: ${DOCKER_USER_ID:-1000}
|
||||||
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
|
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
|
||||||
DOCKER_USER: ${DOCKER_USER:-acore}
|
DOCKER_USER: ${DOCKER_USER:-acore}
|
||||||
|
CACHEBUST: ${CACHEBUST:-1}
|
||||||
<<: *cache-from
|
<<: *cache-from
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOL_CLIENT_DATA_PROD:-ac-client-data-prod}:/azerothcore/env/dist/data:ro
|
- ${DOCKER_VOL_CLIENT_DATA_PROD:-ac-client-data-prod}:/azerothcore/env/dist/data:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user