personal-website-astro/.drone.yml
ChronosXYZ 128fdb60ef
All checks were successful
continuous-integration/drone/push Build is passing
Use pnpm in drone CI
2024-09-19 03:48:00 +03:00

61 lines
1.3 KiB
YAML

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: build
image: node:20-slim
volumes:
- name: cache
path: /drone/src/.pnpm-store
commands:
- corepack enable
- pnpm config set store-dir .pnpm-store
- pnpm i
- pnpm run build
- name: rsync
image: drillster/drone-rsync
settings:
hosts:
- nexusnest.link
port:
from_secret: rsync_port
target: /srv/nginx/nginx/www/pigeoncatcher.site
source: dist/
user:
from_secret: rsync_user
key:
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
volumes:
- name: cache
host:
path: /srv/drone/cache/personal-website