+36
@@ -0,0 +1,36 @@
|
|||||||
|
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: /drone/src/dist
|
||||||
|
commands:
|
||||||
|
# - apk add --no-cache tar zstd openssh rsync
|
||||||
|
- bun install --frozen_lockfile
|
||||||
|
- bun --bun run build
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- GiteaRegistryConfig
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- develop
|
||||||
Reference in New Issue
Block a user