feat(CORE/docker): cachebust for the client data

This commit is contained in:
Yehonal 2022-11-07 17:30:00 +01:00
parent 9dbadbd6d9
commit e0313219e3
3 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,7 @@ jobs:
DOCKER_CLIENT_TIMEOUT: 400
COMPOSE_HTTP_TIMEOUT: 400
run: |
export CACHEBUST=$EPOCHSECONDS
export DOCKER_USER_ID=$(id -u)
export DOCKER_GROUP_ID=$(id -u)
# pull the images first to load the docker cache layers

View File

@ -283,6 +283,7 @@ ENV DATAPATH=/azerothcore/env/dist/data
ENV DATAPATH_ZIP=/tmp/data.zip
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
USER $DOCKER_USER

View File

@ -364,6 +364,7 @@ services:
USER_ID: ${DOCKER_USER_ID:-1000}
GROUP_ID: ${DOCKER_GROUP_ID:-1000}
DOCKER_USER: ${DOCKER_USER:-acore}
CACHEBUST: ${CACHEBUST:-1}
<<: *cache-from
volumes:
- ${DOCKER_VOL_CLIENT_DATA_PROD:-ac-client-data-prod}:/azerothcore/env/dist/data:ro