feat: support arm arm64 i386 docker image.
This commit is contained in:
parent
94ed25f353
commit
2d7a8b3379
62
.drone.yml
62
.drone.yml
@ -65,17 +65,6 @@ pipeline:
|
||||
when:
|
||||
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:
|
||||
image: plugins/docker
|
||||
group: release
|
||||
@ -89,6 +78,57 @@ pipeline:
|
||||
event: [ push, tag ]
|
||||
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:
|
||||
image: plugins/github-release
|
||||
pull: true
|
||||
|
10
Dockerfile.arm
Normal file
10
Dockerfile.arm
Normal 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
10
Dockerfile.arm64
Normal 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
10
Dockerfile.i386
Normal 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"]
|
Loading…
Reference in New Issue
Block a user