personal-website-astro/.drone.yml

61 lines
1.3 KiB
YAML
Raw Normal View History

2024-09-18 23:47:22 +00:00
kind: pipeline
name: default
steps:
2024-09-19 00:45:58 +00:00
# - 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
2024-09-18 23:47:22 +00:00
- name: build
2024-09-19 00:12:39 +00:00
image: node:20-slim
2024-09-19 00:45:58 +00:00
volumes:
- name: cache
path: /drone/src/.pnpm-store
2024-09-18 23:47:22 +00:00
commands:
2024-09-19 00:45:58 +00:00
- corepack enable
- pnpm config set store-dir .pnpm-store
- pnpm i
- pnpm run build
2024-09-18 23:47:22 +00:00
- name: rsync
image: drillster/drone-rsync
settings:
hosts:
- nexusnest.link
port:
from_secret: rsync_port
target: /srv/nginx/nginx/www/pigeoncatcher.site
source: dist/
2024-09-18 23:47:22 +00:00
user:
from_secret: rsync_user
key:
from_secret: rsync_key
2024-09-19 00:12:39 +00:00
args:
- --delete
2024-09-19 00:45:58 +00:00
# - 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
2024-09-19 00:12:39 +00:00
volumes:
- name: cache
host:
path: /srv/drone/cache