소스 검색

Add drone config

Kirk Trombley 4 년 전
부모
커밋
1f0bbf4a15
1개의 변경된 파일38개의 추가작업 그리고 0개의 파일을 삭제
  1. 38 0
      .drone.yml

+ 38 - 0
.drone.yml

@@ -0,0 +1,38 @@
+kind: pipeline
+type: docker
+name: ui
+
+steps:
+- name: build
+  image: node:12.7.0
+  volumes:
+  - name: build
+    path: /build/
+  commands:
+  - yarn install
+  - yarn build
+  - mv build/* /build/
+  when:
+    branch:
+    - master
+- name: upload
+  image: plugins/s3
+  volumes:
+  - name: build
+    path: /build/
+  settings:
+    access_key:
+      from_secret: minio_access_key
+    secret_key:
+      from_secret: minio_secret_key
+    bucket: siteroot
+    source: /build/**/*
+    strip_prefix: /build
+    target: /
+    path_style: true
+    endpoint:
+      from_secret: minio_target
+    
+volumes:
+- name: build
+  temp: {}