代码拉取完成,页面将自动刷新
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: test
pull: default
image: rancher/dapper:v0.6.0
commands:
- dapper ci
privileged: true
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- pull_request
exclude:
- tag
- name: build
pull: default
image: rancher/dapper:v0.6.0
commands:
- BUILD_LATEST=true dapper ci
privileged: true
volumes:
- name: docker
path: /var/run/docker.sock
when:
branch:
- master
event:
exclude:
- pull_request
- tag
- name: upload
pull: default
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "no-cache,must-revalidate"
source: dist/static/latest2
target: releases.rancher.com/ui/latest2
token:
from_secret: google_auth_key
when:
branch:
- master
event:
exclude:
- pull_request
- tag
- name: build-release
pull: default
image: rancher/dapper:v0.6.0
commands:
- dapper ci
environment:
ENVIRONMENT: production
privileged: true
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- tag
ref:
include:
- "refs/tags/v2.7.*"
- name: upload-release
pull: default
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "no-cache,must-revalidate"
source: dist/static/${DRONE_TAG##v}
target: releases.rancher.com/ui/${DRONE_TAG##v}
token:
from_secret: google_auth_key
when:
event:
- tag
ref:
include:
- "refs/tags/v2.7.*"
- name: upload-release-tar
pull: default
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "no-cache,must-revalidate"
source: dist/static/${DRONE_TAG##v}.tar.gz
target: releases.rancher.com/ui/${DRONE_TAG##v}.tar.gz
token:
from_secret: google_auth_key
when:
event:
- tag
ref:
include:
- "refs/tags/v2.7.*"
- name: create-pr-in-rancher
image: curlimages/curl:7.81.0
user: root
environment:
PAT_USERNAME:
from_secret: pat_username
PAT_TOKEN:
from_secret: github_token
commands:
- apk -U --no-cache add bash
- scripts/create-pr-in-rancher
when:
event:
- tag
ref:
include:
- "refs/tags/v2.7.*"
volumes:
- name: docker
host:
path: /var/run/docker.sock
---
kind: pipeline
name: fossa
steps:
- name: fossa
image: rancher/drone-fossa:latest
failure: ignore
settings:
api_key:
from_secret: FOSSA_API_KEY
when:
instance:
- drone-publish.rancher.io
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。