2019-01-01 08:23:01 +00:00
|
|
|
---
|
2019-01-26 05:10:04 +00:00
|
|
|
kind: pipeline
|
2019-02-05 04:42:35 +00:00
|
|
|
name: amd64
|
2019-01-26 05:10:04 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: build
|
2020-12-04 21:07:04 +00:00
|
|
|
image: rancher/dapper:v0.5.0
|
2020-11-06 19:37:02 +00:00
|
|
|
secrets: [ gcloud_auth, unprivileged_github_token ]
|
2019-12-23 19:07:34 +00:00
|
|
|
environment:
|
2020-11-06 19:37:02 +00:00
|
|
|
GITHUB_TOKEN:
|
|
|
|
from_secret: unprivileged_github_token
|
2019-12-23 19:07:34 +00:00
|
|
|
GCLOUD_AUTH:
|
|
|
|
from_secret: gcloud_auth
|
2019-02-05 04:42:35 +00:00
|
|
|
commands:
|
|
|
|
- dapper ci
|
2020-01-06 23:18:15 +00:00
|
|
|
- echo "${DRONE_TAG}-amd64" | sed -e 's/+/-/g' >.tags
|
2019-02-05 04:42:35 +00:00
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
2021-09-18 01:08:11 +00:00
|
|
|
- name: fossa
|
2021-10-05 23:05:56 +00:00
|
|
|
image: registry.suse.com/suse/sle15:15.3.17.8.1
|
2021-09-18 01:08:11 +00:00
|
|
|
failure: ignore
|
|
|
|
environment:
|
|
|
|
FOSSA_API_KEY:
|
|
|
|
from_secret: FOSSA_API_KEY
|
|
|
|
commands:
|
2021-10-05 23:05:56 +00:00
|
|
|
- zypper -n install curl unzip
|
|
|
|
- "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/spectrometer/master/install.sh | sh"
|
|
|
|
- fossa analyze
|
|
|
|
- fossa test
|
2021-09-18 01:08:11 +00:00
|
|
|
when:
|
|
|
|
instance:
|
|
|
|
- drone-publish.k3s.io
|
|
|
|
ref:
|
|
|
|
include:
|
|
|
|
- "refs/heads/master"
|
|
|
|
- "refs/heads/release-*"
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- tag
|
|
|
|
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: github_binary_release
|
|
|
|
image: ibuildthecloud/github-release:v0.0.1
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
prerelease: true
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
checksum_file: CHECKSUMsum-amd64.txt
|
|
|
|
checksum_flatten: true
|
|
|
|
files:
|
|
|
|
- "dist/artifacts/*"
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-02-05 04:42:35 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: docker-publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: package/Dockerfile
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-23 03:02:06 +00:00
|
|
|
repo: "rancher/k3s"
|
2019-02-05 04:42:35 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-02-05 04:42:35 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
2019-01-26 05:10:04 +00:00
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
- name: test
|
2020-12-04 21:07:04 +00:00
|
|
|
image: rancher/dapper:v0.5.0
|
2019-11-11 22:18:16 +00:00
|
|
|
secrets: [ gcloud_auth ]
|
|
|
|
environment:
|
2020-12-15 00:26:14 +00:00
|
|
|
ENABLE_REGISTRY: 'true'
|
2019-11-11 22:18:16 +00:00
|
|
|
GCLOUD_AUTH:
|
|
|
|
from_secret: gcloud_auth
|
2019-05-02 20:32:42 +00:00
|
|
|
commands:
|
2019-11-01 16:48:28 +00:00
|
|
|
- dapper -f Dockerfile.test.dapper
|
2019-05-02 20:32:42 +00:00
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
2019-05-03 23:47:25 +00:00
|
|
|
- name: github_e2e_logs_release
|
|
|
|
image: ibuildthecloud/github-release:v0.0.1
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
prerelease: true
|
|
|
|
files:
|
|
|
|
- "dist/artifacts/e2e-*.log"
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-05-03 23:47:25 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-01-26 05:10:04 +00:00
|
|
|
volumes:
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: docker
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|
2019-01-26 05:10:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-02-05 04:42:35 +00:00
|
|
|
name: arm64
|
2019-01-26 05:10:04 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm64
|
|
|
|
|
|
|
|
steps:
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: build
|
2020-12-04 21:07:04 +00:00
|
|
|
image: rancher/dapper:v0.5.0
|
2019-12-23 19:07:34 +00:00
|
|
|
secrets: [ gcloud_auth ]
|
|
|
|
environment:
|
|
|
|
GCLOUD_AUTH:
|
|
|
|
from_secret: gcloud_auth
|
2019-02-05 04:42:35 +00:00
|
|
|
commands:
|
|
|
|
- dapper ci
|
2020-01-06 23:18:15 +00:00
|
|
|
- echo "${DRONE_TAG}-arm64" | sed -e 's/+/-/g' >.tags
|
2019-02-05 04:42:35 +00:00
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
|
|
|
- name: github_binary_release
|
|
|
|
image: ibuildthecloud/github-release:v0.0.1
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
prerelease: true
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
checksum_file: CHECKSUMsum-arm64.txt
|
|
|
|
checksum_flatten: true
|
|
|
|
files:
|
|
|
|
- "dist/artifacts/*"
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-02-05 04:42:35 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
|
|
|
- name: docker-publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: package/Dockerfile
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-23 03:02:06 +00:00
|
|
|
repo: "rancher/k3s"
|
2019-02-05 04:42:35 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-02-05 04:42:35 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
2019-01-01 08:23:01 +00:00
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
- name: test
|
2020-12-04 21:07:04 +00:00
|
|
|
image: rancher/dapper:v0.5.0
|
2019-11-11 22:18:16 +00:00
|
|
|
secrets: [ gcloud_auth ]
|
|
|
|
environment:
|
2020-12-15 00:26:14 +00:00
|
|
|
ENABLE_REGISTRY: 'true'
|
2019-11-11 22:18:16 +00:00
|
|
|
GCLOUD_AUTH:
|
|
|
|
from_secret: gcloud_auth
|
2019-09-23 17:57:51 +00:00
|
|
|
commands:
|
2019-11-01 16:48:28 +00:00
|
|
|
- dapper -f Dockerfile.test.dapper
|
2019-09-23 17:57:51 +00:00
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
2019-01-26 05:10:04 +00:00
|
|
|
volumes:
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: docker
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: arm
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: arm
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2020-12-04 21:07:04 +00:00
|
|
|
image: rancher/dapper:v0.5.0
|
2019-12-23 19:07:34 +00:00
|
|
|
secrets: [ gcloud_auth ]
|
|
|
|
environment:
|
|
|
|
GCLOUD_AUTH:
|
|
|
|
from_secret: gcloud_auth
|
2019-02-05 04:42:35 +00:00
|
|
|
commands:
|
|
|
|
- dapper ci
|
2020-01-06 23:18:15 +00:00
|
|
|
- echo "${DRONE_TAG}-arm" | sed -e 's/+/-/g' >.tags
|
2019-02-05 04:42:35 +00:00
|
|
|
volumes:
|
2019-01-26 05:10:04 +00:00
|
|
|
- name: docker
|
2019-02-05 04:42:35 +00:00
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
|
|
|
- name: github_binary_release
|
|
|
|
image: ibuildthecloud/github-release:v0.0.1
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: github_token
|
|
|
|
prerelease: true
|
|
|
|
checksum:
|
|
|
|
- sha256
|
|
|
|
checksum_file: CHECKSUMsum-arm.txt
|
|
|
|
checksum_flatten: true
|
|
|
|
files:
|
|
|
|
- "dist/artifacts/*"
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-02-05 04:42:35 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
2019-01-26 05:10:04 +00:00
|
|
|
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: docker-publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: package/Dockerfile
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2019-02-23 03:02:06 +00:00
|
|
|
repo: "rancher/k3s"
|
2019-02-05 04:42:35 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
when:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2019-02-05 04:42:35 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2019-11-01 16:48:28 +00:00
|
|
|
- name: test
|
2020-12-04 21:07:04 +00:00
|
|
|
image: rancher/dapper:v0.5.0
|
2019-11-11 22:18:16 +00:00
|
|
|
secrets: [ gcloud_auth ]
|
|
|
|
environment:
|
2020-12-15 00:26:14 +00:00
|
|
|
ENABLE_REGISTRY: 'true'
|
2019-11-11 22:18:16 +00:00
|
|
|
GCLOUD_AUTH:
|
|
|
|
from_secret: gcloud_auth
|
2019-10-25 09:29:32 +00:00
|
|
|
commands:
|
2019-11-01 16:48:28 +00:00
|
|
|
- dapper -f Dockerfile.test.dapper
|
2019-10-25 09:29:32 +00:00
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
2019-02-05 04:42:35 +00:00
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|
2019-01-26 05:10:04 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2021-05-04 21:20:21 +00:00
|
|
|
name: validate_go_mods
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: validate_go_mods
|
|
|
|
image: rancher/dapper:v0.5.0
|
|
|
|
commands:
|
|
|
|
- dapper -f Dockerfile.test.mod.dapper
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
volumes:
|
|
|
|
- name: docker
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
2019-02-05 04:42:35 +00:00
|
|
|
name: manifest
|
2019-01-26 05:10:04 +00:00
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
2019-02-05 04:42:35 +00:00
|
|
|
arch: amd64
|
2019-01-26 05:10:04 +00:00
|
|
|
|
|
|
|
steps:
|
2019-02-05 04:42:35 +00:00
|
|
|
- name: manifest
|
2020-01-20 20:29:48 +00:00
|
|
|
image: plugins/docker
|
2020-01-07 00:29:37 +00:00
|
|
|
environment:
|
2020-01-20 20:29:48 +00:00
|
|
|
DOCKER_USERNAME:
|
2019-02-05 04:42:35 +00:00
|
|
|
from_secret: docker_username
|
2020-01-20 20:29:48 +00:00
|
|
|
DOCKER_PASSWORD:
|
2019-02-05 04:42:35 +00:00
|
|
|
from_secret: docker_password
|
2020-01-20 20:29:48 +00:00
|
|
|
settings:
|
|
|
|
dry_run: true
|
|
|
|
dockerfile: Dockerfile.manifest
|
|
|
|
repo: "rancher/k3s-manifest"
|
|
|
|
build_args_from_env:
|
|
|
|
- DOCKER_USERNAME
|
|
|
|
- DOCKER_PASSWORD
|
|
|
|
- DRONE_TAG
|
2020-03-02 17:28:26 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2020-03-02 17:28:26 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
2019-01-26 05:10:04 +00:00
|
|
|
|
2019-02-05 04:42:35 +00:00
|
|
|
depends_on:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- arm
|
2020-02-14 22:48:28 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: dispatch
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
steps:
|
2020-03-02 17:28:26 +00:00
|
|
|
- name: dispatch
|
2020-12-16 19:29:00 +00:00
|
|
|
image: curlimages/curl:7.74.0
|
|
|
|
user: root
|
2020-03-02 17:28:26 +00:00
|
|
|
environment:
|
|
|
|
PAT_USERNAME:
|
|
|
|
from_secret: pat_username
|
|
|
|
PAT_TOKEN:
|
|
|
|
from_secret: github_token
|
|
|
|
commands:
|
2020-12-16 19:29:00 +00:00
|
|
|
- apk -U --no-cache add bash
|
2020-03-13 21:56:03 +00:00
|
|
|
- scripts/dispatch
|
2020-03-02 17:28:26 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
instance:
|
2020-12-04 21:07:04 +00:00
|
|
|
- drone-publish.k3s.io
|
2020-03-02 17:28:26 +00:00
|
|
|
ref:
|
|
|
|
- refs/head/master
|
|
|
|
- refs/tags/*
|
|
|
|
event:
|
|
|
|
- tag
|
|
|
|
|
2020-02-27 00:55:32 +00:00
|
|
|
depends_on:
|
2020-10-28 18:27:08 +00:00
|
|
|
- manifest
|