This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
36 lines (34 loc) · 1.41 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
pipeline:
packages:
# cat images/packager.dkr | docker build --tag=gcr.io/kubeadm/ci-packager:latest -
image: gcr.io/kubeadm/ci-packager:latest
commands:
# TODO: we can probably cache upstream as reference or something, if it takes too long to clone
- mkdir $GOPATH/src/k8s.io/
- src=$GOPATH/src/k8s.io/kubernetes
- git clone --branch master --quiet --single-branch https://github.com/kubernetes/kubernetes $src
- make -C $src WHAT="cmd/kubelet cmd/kubectl cmd/kubeadm"
- make packages-from-local-build-output
- make copy-deb-packages
#- make copy-rpm-packages
#- make -C $src WHAT="cmd/kube-apiserver cmd/kube-controller-manager cmd/kube-discovery cmd/kube-proxy plugin/cmd/kube-scheduler"
- make -C $src WHAT="cmd/hyperkube"
- make copy-binaries-for-docker-images
xenial:
image: plugins/docker
repo: gcr.io/kubeadm/ci-xenial-systemd
context: images
dockerfile: images/xenial-systemd-test.dkr
tag:
- test-${DRONE_BRANCH}-latest
- test-${DRONE_BRANCH}-${DRONE_COMMIT}-${DRONE_BUILD_NUMBER}
hyperkube-image:
image: plugins/docker
repo: gcr.io/kubeadm/hyperkube-amd64
context: images/kube-cluster-components
dockerfile: images/kube-cluster-components/Dockerfile
build_args:
- binary=hyperkube
tag:
- test-${DRONE_BRANCH}-latest
- test-${DRONE_BRANCH}-${DRONE_COMMIT}-${DRONE_BUILD_NUMBER}