Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-arch drone #14

Merged
merged 1 commit into from
Jan 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 64 additions & 48 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,71 @@
---
pipeline:
build:
kind: pipeline
name: intel

platform:
os: linux
arch: amd64

steps:
- name: build
privileged: true
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

---
kind: pipeline
name: arm

platform:
os: linux
arch: arm64

steps:
- name: build
privileged: true
image: rancher/dapper:1.11.2
image: rancher/dapper:v0.4.0
environment:
DAPPER_HOST_ARCH: arm
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- name: docker
path: /var/run/docker.sock
commands:
- dapper ci

stage-binaries:
image: rancher/dapper:1.11.2
volumes:
- name: docker
host:
path: /var/run/docker.sock


---
kind: pipeline
name: arm64

platform:
os: linux
arch: arm64

steps:
- name: build
privileged: true
image: rancher/dapper:v0.4.0
volumes:
- name: docker
path: /var/run/docker.sock
commands:
- cp -f ./bin/k3s-incluster ./package/k3s
when:
branch: master
event: tag

publish-image:
image: plugins/docker
dockerfile: package/Dockerfile
repo: rancher/k3s
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
files:
- dist/artifacts/*
checksum:
- sha256
secrets: [github_token]
when:
branch: master
event: tag
ref:
exclude: [ refs/tags/*rc* ]
- dapper ci

volumes:
- name: docker
host:
path: /var/run/docker.sock