From 128fdb60efd10f14bfcbaf28d299b5fe9f6554c7 Mon Sep 17 00:00:00 2001 From: ChronosXYZ Date: Thu, 19 Sep 2024 03:45:58 +0300 Subject: [PATCH] Use pnpm in drone CI --- .drone.yml | 63 +++++++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5c41266..bc27f97 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,24 +2,29 @@ kind: pipeline name: default steps: - - name: restore-cache - image: meltwater/drone-cache:dev - settings: - pull: true - backend: "filesystem" - restore: true - archive_format: "gzip" - cache_key: "volume" - mount: - - "node_modules" - volumes: - - name: cache - path: /tmp/cache + # - name: restore-cache + # image: meltwater/drone-cache:dev + # settings: + # pull: true + # backend: "filesystem" + # restore: true + # archive_format: "gzip" + # cache_key: "volume" + # mount: + # - "node_modules" + # volumes: + # - name: cache + # path: /tmp/cache - name: build image: node:20-slim + volumes: + - name: cache + path: /drone/src/.pnpm-store commands: - - npm install - - npm run build + - corepack enable + - pnpm config set store-dir .pnpm-store + - pnpm i + - pnpm run build - name: rsync image: drillster/drone-rsync settings: @@ -35,21 +40,21 @@ steps: from_secret: rsync_key args: - --delete - - name: rebuild-cache - image: meltwater/drone-cache - settings: - pull: true - rebuild: true - cache_key: "volume" - backend: "filesystem" - archive_format: "gzip" - mount: - - "node_modules" - volumes: - - name: cache - path: /tmp/cache + # - name: rebuild-cache + # image: meltwater/drone-cache + # settings: + # pull: true + # rebuild: true + # cache_key: "volume" + # backend: "filesystem" + # archive_format: "gzip" + # mount: + # - "node_modules" + # volumes: + # - name: cache + # path: /tmp/cache volumes: - name: cache host: - path: /srv/drone/cache + path: /srv/drone/cache/personal-website