hexo-theme-ayer/.drone.yml

58 lines
1.5 KiB
YAML
Raw Normal View History

2023-01-22 21:15:25 +00:00
kind: pipeline
steps:
- name: restore-cache
image: meltwater/drone-cache:dev
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_acces
AWS_SECRET_ACCESS_KEY:
from_secret: aws_key
pull: true
settings:
debug: false
cache_key: '{{ arch }}_{{ os }}_{{ checksum "package-lock.json" }}'
archive_format: "gzip"
endpoint: storage.yandexcloud.net
restore: true
bucket: drone-cache
region: ru-central1
mount: 'node_modules'
- name: run-sh
image: node:alpine
commands:
- chmod +x ./bin/run.sh
- ./bin/run.sh
2023-03-19 16:10:23 +00:00
- name: update-site
2023-01-22 22:13:59 +00:00
image: plugins/downstream
settings:
server: https://drone.lp76.ru
token:
from_secret: drone_token
2023-01-22 23:24:55 +00:00
fork: false
2023-01-22 22:21:37 +00:00
repositories:
- aleks/site
2023-01-22 21:15:25 +00:00
- name: rebuild-cache
image: meltwater/drone-cache:dev
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_acces
AWS_SECRET_ACCESS_KEY:
from_secret: aws_key
pull: true
settings:
debug: false
cache_key: '{{ arch }}_{{ os }}_{{ checksum "package-lock.json" }}'
archive_format: "gzip"
endpoint: storage.yandexcloud.net
rebuild: true
bucket: drone-cache
region: ru-central1
mount: 'node_modules'
- name: telegram
image: appleboy/drone-telegram
settings:
token:
from_secret: token_telegramm
to:
from_secret: to_telegram_user
message: #success {{build.status}}