feat: support arm arm64 i386 docker image.

This commit is contained in:
Bo-Yi Wu 2017-12-09 18:36:15 +08:00
parent 94ed25f353
commit 2d7a8b3379
4 changed files with 81 additions and 11 deletions

View File

@ -65,17 +65,6 @@ pipeline:
when: when:
event: [ tag ] event: [ tag ]
publish_server:
image: plugins/docker
group: release
pull: true
secrets: [ docker_username, docker_password ]
default_tags: true
repo: ${DRONE_REPO}
when:
event: [ push, tag ]
local: false
publish_alpine: publish_alpine:
image: plugins/docker image: plugins/docker
group: release group: release
@ -89,6 +78,57 @@ pipeline:
event: [ push, tag ] event: [ push, tag ]
local: false local: false
publish_linux_amd64:
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
group: release
repo: ${DRONE_REPO}
auto_tag: true
dockerfile: Dockerfile
when:
event: [ push, tag ]
local: false
publish_linux_i386:
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
group: release
repo: ${DRONE_REPO}
auto_tag: true
auto_tag_suffix: i386
dockerfile: Dockerfile.i386
when:
event: [ push, tag ]
local: false
publish_linux_arm64:
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
group: release
repo: ${DRONE_REPO}
auto_tag: true
auto_tag_suffix: arm64
dockerfile: Dockerfile.arm64
when:
event: [ push, tag ]
local: false
publish_linux_arm:
image: plugins/docker:17.05
pull: true
secrets: [ docker_username, docker_password ]
group: release
repo: ${DRONE_REPO}
auto_tag: true
auto_tag_suffix: arm
dockerfile: Dockerfile.arm
when:
event: [ push, tag ]
local: false
github: github:
image: plugins/github-release image: plugins/github-release
pull: true pull: true

10
Dockerfile.arm Normal file
View File

@ -0,0 +1,10 @@
FROM plugins/base:multiarch
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.name="Drone Telegram" \
org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0"
ADD release/linux/amd64/drone-telegram /bin/
ENTRYPOINT ["/bin/drone-telegram"]

10
Dockerfile.arm64 Normal file
View File

@ -0,0 +1,10 @@
FROM plugins/base:multiarch
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.name="Drone Telegram" \
org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0"
ADD release/linux/arm64/drone-telegram /bin/
ENTRYPOINT ["/bin/drone-telegram"]

10
Dockerfile.i386 Normal file
View File

@ -0,0 +1,10 @@
FROM plugins/base:multiarch
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.name="Drone Telegram" \
org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0"
ADD release/linux/i386/drone-telegram /bin/
ENTRYPOINT ["/bin/drone-telegram"]