Compare commits

...

2 Commits

Author SHA1 Message Date
d17fe0b234 Add docker cache 2023-11-09 13:11:41 +03:00
829f07291d Add depth 20 to git clone 2023-11-09 12:17:45 +03:00
2 changed files with 8 additions and 3 deletions

View File

@ -44,7 +44,10 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
- name: Build 4testing
run: |
cd .${DOCKER_PATH}
@ -57,5 +60,7 @@ jobs:
docker buildx bake -f build.yml \
--set *.args.GIT_BRANCH=${{ matrix.branch }} \
--set *.platform=linux/amd64 \
--push
--set *.cache-from=type=gha \
--set *.cache-to=type=gha \
--push
shell: bash

View File

@ -40,7 +40,7 @@ RUN apt-get -y update && \
ADD https://api.github.com/repos/ONLYOFFICE/DocSpace/git/refs/heads/${GIT_BRANCH} version.json
RUN echo ${GIT_BRANCH} && \
git clone --recurse-submodules -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace.git ${SRC_PATH}
git clone --depth 20 --recurse-submodules -b ${GIT_BRANCH} https://github.com/ONLYOFFICE/DocSpace.git ${SRC_PATH}
RUN cd ${SRC_PATH} && \
mkdir -p /app/onlyoffice/config/ && \