From cb33e95be22afc94c11a435fc9e5a0be56c5bca0 Mon Sep 17 00:00:00 2001 From: iv1310 Date: Wed, 3 Apr 2024 20:04:48 +0700 Subject: [PATCH 1/2] chore: add multi-stage. --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4c7dcb25..473c51a1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine3.16 as builder +FROM node:16-alpine3.16 as dependencies ARG GH_BACKEND_URL ARG GH_IPFS_URL @@ -16,6 +16,8 @@ COPY package.json yarn.lock* ./ RUN yarn install +FROM dependencies as builder + COPY . . RUN set -x \ From 778ffdd871c6fe5121d8735476c242d0e7e510de Mon Sep 17 00:00:00 2001 From: iv1310 Date: Wed, 3 Apr 2024 20:18:22 +0700 Subject: [PATCH 2/2] chore: Tunning the cache config for feature-based. --- .github/workflows/front.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/front.yml b/.github/workflows/front.yml index cec06fd4..0342a757 100644 --- a/.github/workflows/front.yml +++ b/.github/workflows/front.yml @@ -78,7 +78,7 @@ jobs: tags: | ${{ env.image }} cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache-new + cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max - name: Move cache run: |