forked from rancher/opni-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
63 lines (55 loc) · 1.28 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
dronekind: pipeline
name: plugin-tag
trigger:
event:
- tag
branch:
- plugin
platform:
os: linux
arch: amd64
steps:
- name: plugin-clone
image: alpine/git
commands:
- cd ..
- git clone -b 1.3 --single-branch https://github.com/opensearch-project/OpenSearch-Dashboards.git OpenSearch-Dashboards
- mkdir -p OpenSearch-Dashboards/plugins/opni-dashboards-plugin
- mv src/* OpenSearch-Dashboards/plugins/opni-dashboards-plugin
- mv OpenSearch-Dashboards src/OpenSearch-Dashboards
- name: plugin-zip
image: node:10
commands:
- printf "justauselesspword\njustauselesspword\ny\n" | adduser osd
- echo "y\n"
- usermod -aG sudo osd
- chmod -R 777 OpenSearch-Dashboards
- cd OpenSearch-Dashboards
- su -c "yarn osd bootstrap" osd
- cd plugins/opni-dashboards-plugin
- su -c "yarn install" osd
- su -c "yarn build" osd
- su -c "ls build" osd
---
kind: pipeline
name: docker-tag
trigger:
event:
- tag
branch:
- main
platform:
os: linux
arch: amd64
steps:
- name: docker-image
image: plugins/docker
settings:
dockerfile: product/opni/Dockerfile
tag: ${DRONE_TAG}
repo: rancher/opni-ui
username:
from_secret: docker_username
password:
from_secret: docker_password
---