Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed Mar 1, 2018
2 parents 238b620 + 75787ce commit 334089f
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
36 changes: 33 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,43 @@ pipeline:
image: golang:1.9
commands: sh .drone.sh

snapshot:
publish_latest:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
when:
branch: master
event: push
event: [push, tag]

publish_alpine:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
auto_tag_suffix: alpine
dockerfile: Dockerfile.alpine
when:
event: [push, tag]

publish_linux_arm:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
auto_tag_suffix: linux-arm
dockerfile: Dockerfile.linux.arm
when:
event: [push, tag]

publish_linux_arm64:
image: plugins/docker
repo: drone/cli
secrets: [docker_username, docker_password]
auto_tag: true
auto_tag_suffix: linux-arm64
dockerfile: Dockerfile.linux.arm64
when:
event: [push, tag]

release:
image: plugins/github-release
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM drone/ca-certs

ADD release/linux/amd64/drone /bin/
COPY release/linux/amd64/drone /bin/

ENTRYPOINT ["/bin/drone"]
7 changes: 7 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.7

RUN apk add --no-cache ca-certificates

COPY release/linux/amd64/drone /bin/

ENTRYPOINT ["/bin/drone"]
5 changes: 5 additions & 0 deletions Dockerfile.linux.arm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM drone/ca-certs

COPY release/linux/arm/drone /bin/

ENTRYPOINT ["/bin/drone"]
6 changes: 6 additions & 0 deletions Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM drone/ca-certs

COPY release/linux/arm64/drone /bin/

ENTRYPOINT ["/bin/drone"]

0 comments on commit 334089f

Please sign in to comment.