@@ -1,6 +1,6 @@
kind: pipeline
type: docker
-name: ui-new
+name: ui
steps:
- name: build-ui
@@ -11,8 +11,8 @@ steps:
commands:
- cd client
- yarn install
- #- yarn validate
- #- yarn test:ci
+ - yarn validate
+ - yarn test:ci
- yarn build
- mv build/* /build/
when:
@@ -39,62 +39,6 @@ volumes:
- name: build
temp: {}
----
-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: publish-ui
- image: appleboy/drone-scp
- 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
- script:
- - cd /opt/terrassumptions/srv/
- - ./update.sh
-volumes:
-- name: build
- temp: {}
---