1
0
mirror of https://github.com/rancher/rke.git synced 2025-10-19 18:10:55 +00:00
Files
rke/.drone.yml

193 lines
3.1 KiB
YAML
Raw Normal View History

2017-10-25 17:02:49 -07:00
---
kind: pipeline
name: default
2018-01-05 10:18:29 -07:00
platform:
os: linux
arch: amd64
2018-01-05 13:58:20 -07:00
steps:
- name: ci
pull: default
image: rancher/dapper:1.11.2
commands:
- dapper ci
2021-06-26 09:37:12 +02:00
- ls -lR build/bin
environment:
CROSS: 1
privileged: true
volumes:
- name: socket
path: /var/run/docker.sock
2021-06-26 09:37:12 +02:00
when:
event:
- pull_request
- tag
2021-06-23 13:15:03 +02: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 14:52:46 -07: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 13:58:20 -07:00
files:
- "build/bin/rke*"
prerelease: true
2021-06-03 11:53:58 +02:00
title: "Pre-release ${DRONE_TAG}"
note: ./build/bin/rke-k8sversions.txt
overwrite: true
when:
2021-06-26 09:37:12 +02:00
instance:
include:
- drone-publish.rancher.io
event:
- tag
ref:
2019-03-29 14:49:09 -07:00
include:
- "refs/tags/*rc*"
- "refs/tags/*alpha*"
- name: github_binary_release
pull: default
image: plugins/github-release
settings:
2018-01-27 11:49:26 +01:00
checksum:
- sha256
files:
- "build/bin/rke*"
api_key:
from_secret: github_token
2021-06-03 11:53:58 +02:00
title: "Release ${DRONE_TAG}"
when:
2021-06-26 09:37:12 +02:00
instance:
include:
- drone-publish.rancher.io
event:
- tag
ref:
exclude:
- "refs/tags/*rc*"
- "refs/tags/*alpha*"
- name: dispatch
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/dispatch
when:
instance:
include:
- drone-publish.rancher.io
event:
- tag
volumes:
- name: socket
host:
path: /var/run/docker.sock
2021-06-23 13:15:03 +02: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 09:37:12 +02:00
when:
event:
- pull_request
- tag
2021-06-23 13:15:03 +02: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 09:37:12 +02:00
when:
event:
- pull_request
- tag
2021-06-23 13:15:03 +02: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 09:37:12 +02:00
when:
event:
- pull_request
- tag
2021-06-23 13:15:03 +02: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 09:37:12 +02:00
when:
event:
- pull_request
- tag
2021-06-23 13:15:03 +02:00
volumes:
- name: socket
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