fix(CORE/docker): client data image deployment
This commit is contained in:
@@ -167,5 +167,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.ACORE_DOCKER_REPO_ACCESS_TOKEN }}
|
token: ${{ secrets.ACORE_DOCKER_REPO_ACCESS_TOKEN }}
|
||||||
repository: azerothcore/acore-docker
|
repository: azerothcore/acore-docker
|
||||||
# event-type: my-event
|
event-type: azerothcore-new-images
|
||||||
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
|
||||||
|
|||||||
@@ -279,12 +279,15 @@ RUN addgroup --gid $GROUP_ID acore && \
|
|||||||
passwd -d acore && \
|
passwd -d acore && \
|
||||||
echo 'acore ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
|
echo 'acore ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
|
||||||
ENV DATAPATH=/azerothcore/env/dist/data
|
ENV DATAPATH=/azerothcore/env/dist/data-temp
|
||||||
ENV DATAPATH_ZIP=/tmp/data.zip
|
ENV DATAPATH_ZIP=/tmp/data.zip
|
||||||
|
|
||||||
RUN mkdir -p "$DATAPATH"
|
RUN mkdir -p "$DATAPATH"
|
||||||
|
RUN mkdir -p "/azerothcore/env/dist/data"
|
||||||
ARG CACHEBUST=1
|
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-temp /azerothcore-temp/acore.sh client-data && cp -rT /azerothcore/env/dist/data-temp/ /azerothcore/env/dist/data && chown -R $DOCKER_USER:$DOCKER_USER /azerothcore
|
||||||
|
|
||||||
|
ENV DATAPATH=/azerothcore/env/dist/data
|
||||||
|
|
||||||
USER $DOCKER_USER
|
USER $DOCKER_USER
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user