代码拉取完成,页面将自动刷新
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
---
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。