home-app/.drone.yml

32 lines
702 B
YAML
Raw Normal View History

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:
- name: build
image: node:lts-bullseye
commands:
- apt-get update -y && apt-get install git -y
2022-04-30 07:36:42 +00:00
- yarn && yarn build
2022-04-30 07:00:02 +00:00
- name: upload
image: plugins/s3
settings:
bucket: home-app
2022-04-30 07:41:37 +00:00
region: us-ashburn-02
acl: public-read
2022-04-30 07:00:02 +00:00
endpoint: https://storage.186526.xyz
access_key:
from_secret: s3_access_key
secret_key:
from_secret: s3_secret_key
source: dist/**/*
2022-04-30 07:53:11 +00:00
target: /dist
2022-04-30 13:28:12 +00:00
path_style: true
- name: send telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_bot_token
to: real186526