add drone pipeline
This commit is contained in:
23
.drone.yml
Normal file
23
.drone.yml
Normal 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}
|
||||||
Reference in New Issue
Block a user