Skip to content

Commit

Permalink
Add drone.yml (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnummelin committed Mar 8, 2019
1 parent bd90a6c commit a470cf4
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
workspace:
base: /go
path: src/github.com/kontena/service-lb-operator


pipeline:
build:
image: golang:1.11
commands:
- mkdir -p /go/bin
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure -vendor-only
# Uncomment below when there's something to test :D
#- ./test.sh
- ./build.sh

release:
image: plugins/github-release
secrets: [github_token]
files:
- output/*
draft: true # Add changelog and publish manually
checksum:
- sha256
when:
event: tag

# build and deploy quay.io/kontena/service-lb-operator-amd64:edge from master branch
docker-edge-amd64:
group: docker
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile
build_args:
- ARCH=amd64
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/service-lb-operator-amd64
tags: edge
when:
event: push
branch: master

# build and deploy quay.io/kontena/service-lb-operator-arm64:edge from master branch
docker-edge-arm64:
group: docker
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile
build_args:
- ARCH=arm64
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/service-lb-operator-arm64
tags: edge
when:
event: push
branch: master

# build and deploy quay.io/kontena/service-lb-operator-amd64:<tag> from tags
docker-amd64:
group: docker
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile
build_args:
- ARCH=amd64
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/service-lb-operator-amd64
auto_tag: true
when:
event: tag

# build and deploy quay.io/kontena/service-lb-operator-arm64:<tag> from tags
docker-arm64:
group: docker
registry: quay.io
image: plugins/docker
dockerfile: Dockerfile
build_args:
- ARCH=arm64
secrets: [ docker_username, docker_password ]
repo: quay.io/kontena/service-lb-operator-arm64
auto_tag: true
when:
event: tag

0 comments on commit a470cf4

Please sign in to comment.