home-app/.drone.yml

43 lines
791 B
YAML

kind: pipeline
type: docker
name: build-and-deploy
steps:
- name: restore-cache
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: build
image: node:lts-bullseye
commands:
- apt-get update -y && apt-get install git -y
- yarn && yarn build
- name: rebuild-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- ./node_modules
volumes:
- name: cache
path: /cache
- name: notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_bot_token
to: real186526
volumes:
- name: cache
host:
path: /tmp/drone/cache