代码拉取完成,页面将自动刷新
---
kind: pipeline
name: default-linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: build
image: rancher/dapper:v0.5.2
commands:
- dapper ci
privileged: true
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
- tag
- name: stage-binaries
image: rancher/dapper:v0.5.2
commands:
- "cp -r ./bin/* ./package/"
when:
event:
- push
- tag
- name: docker-publish-head
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-amd64
password:
from_secret: docker_password
repo: rancher/rancher
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish-head-agent
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
- RANCHER_TAG=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-amd64
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.agent
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-amd64
password:
from_secret: docker_password
repo: rancher/rancher-agent
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish-head-runtime
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.runtime
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-amd64
password:
from_secret: docker_password
repo: rancher/rancher-runtime
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: bin-publish
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "public,no-cache,proxy-revalidate"
source: bin/rancherd
target: releases.rancher.com/rancherd/rancherd-master
token:
from_secret: google_auth_key
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: rancher/rancher
tag: "${DRONE_TAG}-linux-amd64"
username:
from_secret: docker_username
when:
event:
- tag
- name: docker-publish-agent
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
- "RANCHER_TAG=${DRONE_TAG}-linux-amd64"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: "${DRONE_TAG}-linux-amd64"
username:
from_secret: docker_username
when:
event:
- tag
- name: docker-publish-runtime
image: plugins/docker
settings:
build_args:
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.runtime
password:
from_secret: docker_password
repo: rancher/rancher-runtime
tag: "${DRONE_TAG}-linux-amd64"
username:
from_secret: docker_username
when:
event:
- tag
- name: github_binary_prerelease
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
files:
- "bin/rancher-*"
- "bin/rancherd-*"
prerelease: true
when:
event:
- tag
ref:
include:
- "refs/tags/*rc*"
- "refs/tags/*alpha*"
- name: github_binary_release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
files:
- "bin/rancher-*"
- "bin/rancherd-*"
when:
event:
- tag
ref:
include:
- "refs/tags/v2*"
exclude:
- "refs/tags/*rc*"
- "refs/tags/*alpha*"
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to publish an image/artifact.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
exclude:
- promote
---
kind: pipeline
name: default-linux-arm64
platform:
os: linux
arch: arm64
steps:
- name: build
image: rancher/dapper:v0.5.2
commands:
- dapper ci
privileged: true
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- pull_request
- tag
- name: stage-binaries
image: rancher/dapper:v0.5.2
commands:
- "cp -r ./bin/* ./package/"
when:
event:
- push
- tag
- name: docker-publish-head
image: plugins/docker
settings:
build_args:
- ARCH=arm64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-arm64
password:
from_secret: docker_password
repo: rancher/rancher
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish-head-agent
image: plugins/docker
settings:
build_args:
- ARCH=arm64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
- RANCHER_TAG=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-arm64
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.agent
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-linux-arm64
password:
from_secret: docker_password
repo: rancher/rancher-agent
username:
from_secret: docker_username
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish
image: plugins/docker
settings:
build_args:
- ARCH=arm64
- "VERSION=${DRONE_TAG}"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile
password:
from_secret: docker_password
repo: rancher/rancher
tag: "${DRONE_TAG}-linux-arm64"
username:
from_secret: docker_username
when:
event:
- tag
- name: docker-publish-agent
image: plugins/docker
settings:
build_args:
- ARCH=arm64
- "VERSION=${DRONE_TAG}"
- "RANCHER_TAG=${DRONE_TAG}-linux-arm64"
context: package/
custom_dns: 1.1.1.1
dockerfile: package/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: "${DRONE_TAG}-linux-arm64"
username:
from_secret: docker_username
when:
event:
- tag
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to publish an image/artifact.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
exclude:
- promote
---
kind: pipeline
name: default-windows-1809
platform:
os: windows
arch: amd64
version: 1809
steps:
- name: build
pull: always
image: rancher/dapper:v0.5.2
commands:
- dapper.exe -f Dockerfile-windows.dapper -d ci
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- push
- pull_request
- tag
- name: stage-binaries
image: rancher/dapper:v0.5.2
commands:
- "cp -r ./bin/* ./package/windows/"
when:
event:
- push
- tag
- name: docker-publish-head-agent
image: plugins/docker:windows-1809-amd64
settings:
build_args:
- SERVERCORE_VERSION=1809
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
context: package/windows
custom_dns: 1.1.1.1
dockerfile: package/windows/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-windows-1809
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish-agent
image: plugins/docker:windows-1809-amd64
settings:
build_args:
- SERVERCORE_VERSION=1809
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
context: package/windows
custom_dns: 1.1.1.1
dockerfile: package/windows/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: "${DRONE_TAG}-windows-1809"
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- tag
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to publish an image/artifact.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
event:
exclude:
- promote
---
kind: pipeline
name: default-windows-1903
platform:
os: windows
arch: amd64
version: 1903
steps:
- name: build
pull: always
image: rancher/dapper:v0.5.2
commands:
- dapper.exe -f Dockerfile-windows.dapper -d ci
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- push
- pull_request
- tag
- name: stage-binaries
image: rancher/dapper:v0.5.2
commands:
- "cp -r ./bin/* ./package/windows/"
when:
event:
- push
- tag
- name: docker-publish-head-agent
image: plugins/docker:windows-1903-amd64
settings:
build_args:
- SERVERCORE_VERSION=1903
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
context: package/windows
custom_dns: 1.1.1.1
dockerfile: package/windows/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-windows-1903
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish-agent
image: plugins/docker:windows-1903-amd64
settings:
build_args:
- SERVERCORE_VERSION=1903
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
context: package/windows
custom_dns: 1.1.1.1
dockerfile: package/windows/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: "${DRONE_TAG}-windows-1903"
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- tag
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to publish an image/artifact.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
event:
exclude:
- promote
---
kind: pipeline
name: default-windows-1909
platform:
os: windows
arch: amd64
version: 1909
steps:
- name: build
pull: always
image: rancher/dapper:v0.5.2
commands:
- dapper.exe -f Dockerfile-windows.dapper -d ci
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- push
- pull_request
- tag
- name: stage-binaries
image: rancher/dapper:v0.5.2
commands:
- "cp -r ./bin/* ./package/windows/"
when:
event:
- push
- tag
- name: docker-publish-head-agent
image: plugins/docker:windows-1909-amd64
settings:
build_args:
- SERVERCORE_VERSION=1909
- ARCH=amd64
- VERSION=${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-head
context: package/windows
custom_dns: 1.1.1.1
dockerfile: package/windows/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: ${DRONE_BRANCH/release\//}-${DRONE_COMMIT}-windows-1909
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
ref:
include:
- "refs/heads/master"
- "refs/heads/release/v*"
event:
- push
- name: docker-publish-agent
image: plugins/docker:windows-1909-amd64
settings:
build_args:
- SERVERCORE_VERSION=1909
- ARCH=amd64
- "VERSION=${DRONE_TAG}"
context: package/windows
custom_dns: 1.1.1.1
dockerfile: package/windows/Dockerfile.agent
password:
from_secret: docker_password
repo: rancher/rancher-agent
tag: "${DRONE_TAG}-windows-1909"
username:
from_secret: docker_username
volumes:
- name: docker_pipe
path: \\\\.\\pipe\\docker_engine
when:
event:
- tag
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to publish an image/artifact.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker_pipe
host:
path: \\\\.\\pipe\\docker_engine
trigger:
event:
exclude:
- promote
---
kind: pipeline
name: manifest
steps:
- name: push-runtime-manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: manifest-runtime.tmpl
when:
instance:
include:
- drone-publish.rancher.io
event:
- push
- tag
- name: push-agent-manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: manifest-agent.tmpl
when:
instance:
include:
- drone-publish.rancher.io
event:
- push
- tag
- name: push-agent-manifest-head
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: manifest-agent-head.tmpl
when:
instance:
include:
- drone-publish.rancher.io
event:
- push
- name: push-manifest
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
spec: manifest.tmpl
when:
instance:
include:
- drone-publish.rancher.io
event:
- push
- tag
- name: build-chart
image: rancher/dapper:v0.5.2
commands:
- dapper chart/ci
privileged: true
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- push
- tag
- name: chart-publish
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "public,no-cache,proxy-revalidate"
source: bin/chart
target: releases.rancher.com/server-charts
token:
from_secret: google_auth_key
when:
event:
- tag
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to push manifests.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
include:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
exclude:
- promote
depends_on:
- default-linux-amd64
- default-linux-arm64
- default-windows-1809
- default-windows-1903
- default-windows-1909
---
kind: pipeline
name: publish
platform:
os: linux
arch: amd64
steps:
- name: chart-promote
image: rancher/dapper:v0.5.2
commands:
- dapper chart/copy
volumes:
- name: docker
path: /var/run/docker.sock
when:
event:
- promote
target:
- promote-stable
- name: chart-publish
image: plugins/gcs
settings:
acl:
- allUsers:READER
cache_control: "public,no-cache,proxy-revalidate"
source: bin/chart
target: releases.rancher.com/server-charts
token:
from_secret: google_auth_key
- name: slack_notify
image: plugins/slack
settings:
template: "Build {{build.link}} failed to promote chart.\n"
username: Drone_Publish
webhook:
from_secret: slack_webhook
when:
event:
exclude:
- pull_request
instance:
include:
- drone-publish.rancher.io
status:
- failure
volumes:
- name: docker
host:
path: /var/run/docker.sock
trigger:
event:
- promote
...
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。