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:
commit
ea16c6d8c3
36
.drone.yml
36
.drone.yml
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
FROM drone/ca-certs
|
||||
|
||||
ADD release/linux/amd64/drone /bin/
|
||||
COPY release/linux/amd64/drone /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/drone"]
|
||||
|
|
|
@ -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"]
|
|
@ -0,0 +1,5 @@
|
|||
FROM drone/ca-certs
|
||||
|
||||
COPY release/linux/arm/drone /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/drone"]
|
|
@ -0,0 +1,6 @@
|
|||
FROM drone/ca-certs
|
||||
|
||||
COPY release/linux/arm64/drone /bin/
|
||||
|
||||
ENTRYPOINT ["/bin/drone"]
|
||||
|
Loading…
Reference in New Issue