Skip to content

Commit

Permalink
Fix drone 1.0 yaml syntax and enable on public drone (#16)
Browse files Browse the repository at this point in the history
* fix drone 1.0 yaml syntax and enable on public drone

* fix build steps

* fix docker plugin settings syntax
  • Loading branch information
jnummelin authored Nov 27, 2019
1 parent 0014650 commit c6a75b1
Showing 1 changed file with 34 additions and 22 deletions.
56 changes: 34 additions & 22 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,48 @@
---
kind: pipeline
name: default

platform:
os: linux
arch: amd64

workspace:
base: /go
path: src/github.com/kontena/kubelet-rubber-stamp

pipeline:
test:
steps:
- name: test
image: golang:1.11
commands:
- mkdir -p /go/bin
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure -v -vendor-only
- ./test.sh

docker:
group: image
registry: quay.io
- name: docker
image: plugins/docker
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/kubelet-rubber-stamp-amd64
dockerfile: Dockerfile
auto_tag: true
when:
branches: ['master', 'refs/tags/*']
settings:
registry: quay.io
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/kubelet-rubber-stamp-amd64
dockerfile: Dockerfile
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password

docker-arm:
group: image
registry: quay.io
- name: docker-arm
image: plugins/docker
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/kubelet-rubber-stamp-arm64
dockerfile: Dockerfile
build_args:
- ARCH=arm64
auto_tag: true
when:
branches: ['master', 'refs/tags/*']
settings:
registry: quay.io
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/kubelet-rubber-stamp-arm64
dockerfile: Dockerfile
build_args:
- ARCH=arm64
auto_tag: true
username:
from_secret: docker_username
password:
from_secret: docker_password

0 comments on commit c6a75b1

Please sign in to comment.