This commit is contained in:
parent
7f4bbb9f76
commit
128fdb60ef
63
.drone.yml
63
.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
|
||||
|
Loading…
Reference in New Issue
Block a user