signal-slides/.drone.yml
Карпич Дмитрий Александрович 96d056752f chore(*): change to bun and add drone
2025-05-28 11:18:04 +03:00

98 lines
1.9 KiB
YAML

---
kind: pipeline
type: docker
name: "Pipeline for develop branch"
trigger:
branch:
exclude:
- main
steps:
- name: Restore Bun cache
image: plugins/s3-cache
settings:
mode: restore
endpoint: https://minio.meettya.ru
root: dockercache
access_key:
from_secret: minio_access_key
secret_key:
from_secret: minio_secret_key
- name: Build with Bun
pull: if-not-exists
image: oven/bun:1.2.14-debian
commands:
- bun install
- bunx --bun astro build
- name: Rebuild Bun cache
image: plugins/s3-cache
settings:
mode: rebuild
endpoint: https://minio.meettya.ru
root: dockercache
access_key:
from_secret: minio_access_key
secret_key:
from_secret: minio_secret_key
mount:
- node_modules
when:
event: push
---
kind: pipeline
type: docker
name: "Pipeline for main branch"
trigger:
branch:
- main
event:
- push
steps:
- name: Restore Bun cache
image: plugins/s3-cache
settings:
mode: restore
endpoint: https://minio.meettya.ru
root: dockercache
access_key:
from_secret: minio_access_key
secret_key:
from_secret: minio_secret_key
- name: Build with Bun
pull: if-not-exists
image: oven/bun:1.2.14-debian
commands:
- bun install
- bunx --bun astro build
- name: Rebuild Bun cache
image: plugins/s3-cache
settings:
mode: rebuild
endpoint: https://minio.meettya.ru
root: dockercache
access_key:
from_secret: minio_access_key
secret_key:
from_secret: minio_secret_key
mount:
- node_modules
when:
event: push
- name: Publish to Docker
image: plugins/docker
settings:
repo: hub.meettya.ru/signal-slides
tags:
- latest
cache_from:
- "hub.meettya.ru/signal-slides:latest"