1
0
mirror of https://github.com/rancher/rke.git synced 2025-04-27 19:25:44 +00:00
rke/.drone.yml

158 lines
2.4 KiB
YAML
Raw Normal View History

2017-10-26 00:02:49 +00:00
---
kind: pipeline
name: default
2018-01-05 17:18:29 +00:00
platform:
os: linux
arch: amd64
2018-01-05 20:58:20 +00:00
steps:
- name: ci
pull: default
image: rancher/dapper:1.11.2
commands:
- dapper ci
2021-06-26 07:37:12 +00:00
- ls -lR build/bin
environment:
CROSS: 1
privileged: true
volumes:
- name: socket
path: /var/run/docker.sock
2021-06-26 07:37:12 +00:00
when:
event:
- pull_request
- tag
2021-06-23 11:15:03 +00:00
- name: stage-binaries
pull: default
image: rancher/dapper:1.11.2
commands:
- "cp -r ./bin/* ./package/"
when:
event:
- tag
ref:
include:
2019-03-29 21:52:46 +00:00
- "refs/tags/*"
- name: github_binary_prerelease
pull: default
image: plugins/github-release
settings:
api_key:
from_secret: github_token
checksum:
- sha256
2018-01-05 20:58:20 +00:00
files:
- "build/bin/rke_*"
prerelease: true
2021-06-03 09:53:58 +00:00
title: "Pre-release ${DRONE_TAG}"
when:
2021-06-26 07:37:12 +00:00
instance:
include:
- drone-publish.rancher.io
event:
- tag
ref:
2019-03-29 21:49:09 +00:00
include:
- "refs/tags/*rc*"
- "refs/tags/*alpha*"
- name: github_binary_release
pull: default
image: plugins/github-release
settings:
2018-01-27 10:49:26 +00:00
checksum:
- sha256
files:
- "build/bin/rke_*"
api_key:
from_secret: github_token
2021-06-03 09:53:58 +00:00
title: "Release ${DRONE_TAG}"
when:
2021-06-26 07:37:12 +00:00
instance:
include:
- drone-publish.rancher.io
event:
- tag
ref:
exclude:
- "refs/tags/*rc*"
- "refs/tags/*alpha*"
volumes:
- name: socket
host:
path: /var/run/docker.sock
2021-06-23 11:15:03 +00:00
---
kind: pipeline
name: test-cni
platform:
os: linux
arch: amd64
steps:
- name: build
pull: default
image: rancher/dapper:1.11.2
commands:
- dapper build
privileged: true
volumes:
- name: socket
path: /var/run/docker.sock
2021-06-26 07:37:12 +00:00
when:
event:
- pull_request
- tag
2021-06-23 11:15:03 +00:00
- name: integration-flannel
pull: default
image: rancher/dapper:1.11.2
commands:
- dapper integration flannel
privileged: true
volumes:
- name: socket
path: /var/run/docker.sock
2021-06-26 07:37:12 +00:00
when:
event:
- pull_request
- tag
2021-06-23 11:15:03 +00:00
- name: integration-calico
pull: default
image: rancher/dapper:1.11.2
commands:
- dapper integration calico
privileged: true
volumes:
- name: socket
path: /var/run/docker.sock
2021-06-26 07:37:12 +00:00
when:
event:
- pull_request
- tag
2021-06-23 11:15:03 +00:00
- name: integration-weave
pull: default
image: rancher/dapper:1.11.2
commands:
- dapper integration weave
privileged: true
volumes:
- name: socket
path: /var/run/docker.sock
2021-06-26 07:37:12 +00:00
when:
event:
- pull_request
- tag
2021-06-23 11:15:03 +00:00
volumes:
- name: socket
host:
path: /var/run/docker.sock