|
@@ -1,44 +1,44 @@
|
|
-#kind: pipeline
|
|
|
|
-#type: docker
|
|
|
|
-#name: ui
|
|
|
|
|
|
+kind: pipeline
|
|
|
|
+type: docker
|
|
|
|
+name: ui-new
|
|
|
|
|
|
-#steps:
|
|
|
|
-#- name: build-ui
|
|
|
|
-# image: node:12.7.0
|
|
|
|
-# volumes:
|
|
|
|
-# - name: build
|
|
|
|
-# path: /build/
|
|
|
|
-# commands:
|
|
|
|
-# - cd client
|
|
|
|
-# - yarn install
|
|
|
|
-# - yarn validate
|
|
|
|
-# - yarn test:ci
|
|
|
|
-# - 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: terrassumptions
|
|
|
|
-# source: /build/*
|
|
|
|
-# target: /
|
|
|
|
-# path_style: true
|
|
|
|
-# endpoint: http://192.168.0.5:29000
|
|
|
|
|
|
+steps:
|
|
|
|
+- name: build-ui
|
|
|
|
+ image: node:12.7.0
|
|
|
|
+ volumes:
|
|
|
|
+ - name: build
|
|
|
|
+ path: /build/
|
|
|
|
+ commands:
|
|
|
|
+ - cd client
|
|
|
|
+ - yarn install
|
|
|
|
+ - yarn validate
|
|
|
|
+ - yarn test:ci
|
|
|
|
+ - 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: terrassumptions
|
|
|
|
+ source: /build/**/*
|
|
|
|
+ target: /
|
|
|
|
+ path_style: true
|
|
|
|
+ endpoint: http://192.168.0.5:29000
|
|
|
|
|
|
-#volumes:
|
|
|
|
-#- name: build
|
|
|
|
-# temp: {}
|
|
|
|
|
|
+volumes:
|
|
|
|
+- name: build
|
|
|
|
+ temp: {}
|
|
|
|
|
|
-#---
|
|
|
|
|
|
+---
|
|
kind: pipeline
|
|
kind: pipeline
|
|
type: docker
|
|
type: docker
|
|
name: ui
|
|
name: ui
|