38 lines
783 B
YAML
38 lines
783 B
YAML
name: development
|
|
type: docker
|
|
kind: pipeline
|
|
|
|
volumes:
|
|
- name: bun_cache
|
|
host:
|
|
path: /var/lib/cache/docker/bun
|
|
- name: node_modules
|
|
host:
|
|
path: /var/lib/cache/docker/node_modules/pgtune
|
|
- name: dist
|
|
host:
|
|
path: /var/lib/docker/volumes/pgtune/_data
|
|
|
|
steps:
|
|
- name: build and deploy static
|
|
image: dockerhub.timeweb.cloud/oven/bun:alpine
|
|
volumes:
|
|
- name: bun_cache
|
|
path: /root/.bun/install/cache
|
|
- name: node_modules
|
|
path: /drone/src/node_modules
|
|
- name: dist
|
|
path: /dist
|
|
commands:
|
|
- apk add --no-cache rsync
|
|
- bun install --frozen_lockfile
|
|
- bun --bun run build
|
|
- rsync -cavhP --delete-after ./dist/ /dist/
|
|
|
|
image_pull_secrets:
|
|
- GiteaRegistryConfig
|
|
|
|
trigger:
|
|
branch:
|
|
- develop
|