home-app/.drone.yml

43 lines
955 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
2022-05-02 09:16:10 +00:00
- name: docker
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
auto_tag: true
repo: registry.186526.xyz/home-app
registry: registry.186526.xyz
2022-05-02 08:52:52 +00:00
2022-05-02 09:16:10 +00:00
- name: notification
2022-04-30 13:28:12 +00:00
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_bot_token
to: real186526