diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..15d539c --- /dev/null +++ b/.drone.yml @@ -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