mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Multi-arch drone
This commit is contained in:
parent
8cd38003c2
commit
21db1ca48e
106
.drone.yml
106
.drone.yml
@ -1,55 +1,71 @@
|
|||||||
---
|
---
|
||||||
pipeline:
|
kind: pipeline
|
||||||
build:
|
name: intel
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
privileged: true
|
privileged: true
|
||||||
image: rancher/dapper:1.11.2
|
image: rancher/dapper:v0.4.0
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- dapper ci
|
- dapper ci
|
||||||
|
|
||||||
stage-binaries:
|
volumes:
|
||||||
image: rancher/dapper:1.11.2
|
- name: docker
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: arm
|
||||||
|
|
||||||
|
platform:
|
||||||
|
os: linux
|
||||||
|
arch: arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
privileged: true
|
||||||
|
image: rancher/dapper:v0.4.0
|
||||||
|
environment:
|
||||||
|
DAPPER_HOST_ARCH: arm
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- cp -f ./bin/k3s-incluster ./package/k3s
|
- dapper ci
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
publish-image:
|
volumes:
|
||||||
image: plugins/docker
|
- name: docker
|
||||||
dockerfile: package/Dockerfile
|
host:
|
||||||
repo: rancher/k3s
|
path: /var/run/docker.sock
|
||||||
context: package/
|
|
||||||
tag: ${DRONE_TAG}
|
|
||||||
secrets: [docker_username, docker_password]
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: tag
|
|
||||||
|
|
||||||
github_binary_prerelease:
|
|
||||||
image: plugins/github-release
|
|
||||||
prerelease: true
|
|
||||||
files:
|
|
||||||
- dist/artifacts/*
|
|
||||||
checksum:
|
|
||||||
- sha256
|
|
||||||
secrets: [github_token]
|
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: tag
|
|
||||||
ref:
|
|
||||||
include: [ refs/tags/*rc* ]
|
|
||||||
|
|
||||||
github_binary_release:
|
---
|
||||||
image: plugins/github-release
|
kind: pipeline
|
||||||
files:
|
name: arm64
|
||||||
- dist/artifacts/*
|
|
||||||
checksum:
|
platform:
|
||||||
- sha256
|
os: linux
|
||||||
secrets: [github_token]
|
arch: arm64
|
||||||
when:
|
|
||||||
branch: master
|
steps:
|
||||||
event: tag
|
- name: build
|
||||||
ref:
|
privileged: true
|
||||||
exclude: [ refs/tags/*rc* ]
|
image: rancher/dapper:v0.4.0
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
commands:
|
||||||
|
- dapper ci
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
host:
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
Loading…
Reference in New Issue
Block a user