theme/.drone.yml

60 lines
1.0 KiB
YAML
Raw Normal View History

2020-10-28 20:57:23 +05:30
---
kind: pipeline
name: default
2017-08-22 22:39:16 +05:30
2020-10-28 20:57:23 +05:30
platform:
os: linux
arch: arm64
2017-08-22 22:39:16 +05:30
2020-10-28 20:57:23 +05:30
steps:
- name: build
pull: always
2022-01-25 01:56:14 +05:30
image: node:latest
2020-10-28 20:57:23 +05:30
commands:
- npm install
- npm run clean
- npm run build
- npm run release
2020-10-28 20:57:23 +05:30
- name: release
pull: always
image: woodpeckerci/plugin-s3:latest
2020-10-28 20:57:23 +05:30
settings:
acl:
from_secret: aws_s3_acl
region:
from_secret: aws_s3_region
bucket:
from_secret: aws_s3_bucket
endpoint:
from_secret: aws_s3_endpoint
path_style:
from_secret: aws_s3_path_style
2016-12-08 21:11:10 +05:30
strip_prefix: dist/
source: dist/master.tar.gz
target: /theme
2020-10-28 20:57:23 +05:30
environment:
2020-10-28 21:02:19 +05:30
AWS_ACCESS_KEY_ID:
2020-10-28 20:57:23 +05:30
from_secret: aws_access_key_id
2020-10-28 21:02:19 +05:30
AWS_SECRET_ACCESS_KEY:
2020-10-28 20:57:23 +05:30
from_secret: aws_secret_access_key
when:
event:
- push
2016-12-07 06:05:12 +05:30
2020-10-28 20:57:23 +05:30
- name: discord
pull: always
image: appleboy/drone-discord:1
environment:
DISCORD_WEBHOOK_ID:
from_secret: discord_webhook_id
DISCORD_WEBHOOK_TOKEN:
from_secret: discord_webhook_token
when:
event:
- push
- tag
status:
- changed
- failure