|
@@ -1,3 +1,44 @@
|
|
|
+#kind: pipeline
|
|
|
+#type: docker
|
|
|
+#name: ui
|
|
|
+
|
|
|
+#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: {}
|
|
|
+
|
|
|
+#---
|
|
|
kind: pipeline
|
|
|
type: docker
|
|
|
name: ui
|
|
@@ -18,21 +59,36 @@ steps:
|
|
|
when:
|
|
|
branch:
|
|
|
- master
|
|
|
-- name: upload
|
|
|
- image: plugins/s3
|
|
|
+- name: publish-ui
|
|
|
+ image: appleboy/drone-scp
|
|
|
volumes:
|
|
|
- name: build
|
|
|
path: /build/
|
|
|
+ when:
|
|
|
+ branch:
|
|
|
+ - master
|
|
|
+ settings:
|
|
|
+ host: hiram.services
|
|
|
+ username: hiram
|
|
|
+ key:
|
|
|
+ from_secret: ssh_key
|
|
|
+ port: 355
|
|
|
+ target: "/opt/terrassumptions/srv/build-last-push"
|
|
|
+ source: /build
|
|
|
+- name: deploy-ui
|
|
|
+ image: appleboy/drone-ssh
|
|
|
+ when:
|
|
|
+ branch:
|
|
|
+ - master
|
|
|
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
|
|
|
+ host: hiram.services
|
|
|
+ username: hiram
|
|
|
+ key:
|
|
|
+ from_secret: ssh_key
|
|
|
+ port: 355
|
|
|
+ script:
|
|
|
+ - cd /opt/terrassumptions/srv/
|
|
|
+ - ./update.sh
|
|
|
|
|
|
volumes:
|
|
|
- name: build
|