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