From 829f07291decc7c8314f54085eb63139ccbad9c3 Mon Sep 17 00:00:00 2001 From: lemmav Date: Thu, 9 Nov 2023 12:17:45 +0300 Subject: [PATCH 1/2] Add depth 20 to git clone --- install/docker/Dockerfile.app | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/docker/Dockerfile.app b/install/docker/Dockerfile.app index 6f784014529..0a18eb09a0d 100644 --- a/install/docker/Dockerfile.app +++ b/install/docker/Dockerfile.app @@ -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/ && \ From d17fe0b2349db150dbfbea9251ae6b8afaad1434 Mon Sep 17 00:00:00 2001 From: lemmav Date: Thu, 9 Nov 2023 13:11:41 +0300 Subject: [PATCH 2/2] Add docker cache --- .github/workflows/main-build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-build.yml b/.github/workflows/main-build.yml index 3fa7b978000..d6fa070673a 100644 --- a/.github/workflows/main-build.yml +++ b/.github/workflows/main-build.yml @@ -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