1 Star 0 Fork 1

YC小怪/docs-rancher2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.drone.yml 2.48 KB
一键复制 编辑 原始数据 按行查看 历史
kingsd041 提交于 2021-04-13 14:31 . change dron-oss image
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
clone:
disable: true
steps:
- name: clone
image: "drone/git:latest"
environment:
HTTP_PROXY:
from_secret: proxy
HTTPS_PROXY:
from_secret: proxy
http_proxy:
from_secret: proxy
https_proxy:
from_secret: proxy
NOPROXY: localhost
noproxy: localhost
- name: build
image: node:12.16.2
environment:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true"
HTTP_PROXY:
from_secret: proxy
HTTPS_PROXY:
from_secret: proxy
http_proxy:
from_secret: proxy
https_proxy:
from_secret: proxy
NOPROXY: localhost
noproxy: localhost
commands:
- yarn install
- yarn build
- mv ./build /website
volumes:
- name: vol
path: /website
- name: preview
image: kingsd/drone-oss:v0.0.6
settings:
dist: /website/build
dist_ignore: img/
path: docs-rancher2-3-preview
endpoint: oss-accelerate.aliyuncs.com
access_key_id:
from_secret: ACCESS_KEY_ID
access_key_secret:
from_secret: ACCESS_KEY_SECRET
volumes:
- name: vol
path: /website
when:
ref:
include:
- "refs/heads/preview"
event:
- push
- name: production
image: kingsd/drone-oss:v0.0.6
settings:
dist: /website/build
dist_ignore: img/
path: docs-rancher2-3-production
endpoint: oss-accelerate.aliyuncs.com
access_key_id:
from_secret: ACCESS_KEY_ID
access_key_secret:
from_secret: ACCESS_KEY_SECRET
volumes:
- name: vol
path: /website
when:
ref:
include:
- "refs/heads/master"
event:
- push
- name: build-pdf
image: reg.cnrancher.com/tool/node-chrome:12.16.0-stable
environment:
PUPPETEER_EXECUTABLE_PATH: /usr/bin/google-chrome
commands:
- ln -s /website/build ./build
- yarn generate
volumes:
- name: vol
path: /website
when:
event:
- tag
- name: push-pdf
image: kingsd/drone-oss:v0.0.6
settings:
dist: ./build_docs
path: pdf-rancher-private
endpoint: oss-cn-shanghai.aliyuncs.com
access_key_id:
from_secret: ACCESS_KEY_ID
access_key_secret:
from_secret: ACCESS_KEY_SECRET
when:
event:
- tag
volumes:
- name: vol
temp: {}
node:
instance: agent-amd64
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yc_little_monster/docs-rancher2.git
git@gitee.com:yc_little_monster/docs-rancher2.git
yc_little_monster
docs-rancher2
docs-rancher2
master

搜索帮助