This commit is contained in:
parent
7f4bbb9f76
commit
a809ab7350
61
.drone.yml
61
.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,19 +40,19 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user