2022-04-30 07:00:02 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-04-30 07:26:31 +00:00
|
|
|
name: build-and-deploy
|
2022-04-30 07:00:02 +00:00
|
|
|
|
|
|
|
steps:
|
2022-05-03 05:14:12 +00:00
|
|
|
- name: restore-cache
|
|
|
|
image: drillster/drone-volume-cache
|
|
|
|
settings:
|
|
|
|
restore: true
|
|
|
|
mount:
|
|
|
|
- ./node_modules
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /cache
|
|
|
|
|
2022-04-30 07:00:02 +00:00
|
|
|
- name: build
|
|
|
|
image: node:lts-bullseye
|
|
|
|
commands:
|
2022-05-03 05:14:12 +00:00
|
|
|
- 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
|
|
|
|
|
2022-05-02 09:16:10 +00:00
|
|
|
- name: notification
|
2022-04-30 13:28:12 +00:00
|
|
|
image: appleboy/drone-telegram
|
|
|
|
settings:
|
2022-05-03 05:14:12 +00:00
|
|
|
token:
|
2022-04-30 13:28:12 +00:00
|
|
|
from_secret: telegram_bot_token
|
2022-05-03 05:14:12 +00:00
|
|
|
to: real186526
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
host:
|
|
|
|
path: /tmp/drone/cache
|