add drone pipeline

This commit is contained in:
2022-12-05 01:01:06 +08:00
parent aa2377df7f
commit bec2d6538f

23
.drone.yml Normal file
View File

@@ -0,0 +1,23 @@
kind: pipeline
type: docker
name: default
steps:
- name: frontend-web
image: node:19
commands:
- cd web
- npm install
- npm run build
- name: upload
image: plugins/s3-sync
settings:
bucket: msw-artifacts-public
region: ap-southeast-1
access_key:
from_secret: access_key
secret_key:
from_secret: secret_key
source: web/build
target: /msw-open-music/${DRONE_COMMIT}