1
0
Fork 0
mirror of https://github.com/drone/drone-cli.git synced 2024-05-08 00:26:03 +02:00

Merge pull request #82 from tonglil/add-cli

Add alpine image and arm images
This commit is contained in:
Brad Rydzewski 2018-02-21 12:19:52 -08:00 committed by GitHub
commit ea16c6d8c3
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 4 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
FROM drone/ca-certs
ADD release/linux/amd64/drone /bin/
COPY release/linux/amd64/drone /bin/
ENTRYPOINT ["/bin/drone"]

7
Dockerfile.alpine Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:3.7
RUN apk add -U --no-cache ca-certificates
COPY release/linux/amd64/drone /bin/
ENTRYPOINT ["/bin/drone"]

5
Dockerfile.linux.arm Normal file
View File

@ -0,0 +1,5 @@
FROM drone/ca-certs
COPY release/linux/arm/drone /bin/
ENTRYPOINT ["/bin/drone"]

6
Dockerfile.linux.arm64 Normal file
View File

@ -0,0 +1,6 @@
FROM drone/ca-certs
COPY release/linux/arm64/drone /bin/
ENTRYPOINT ["/bin/drone"]