feat(docker): add alpine docker image
This commit is contained in:
parent
53b61735b1
commit
6a5e7570ad
27
.drone.yml
27
.drone.yml
@ -23,8 +23,6 @@ pipeline:
|
||||
- make build
|
||||
# build binary for docker image
|
||||
- make static_build
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
release:
|
||||
image: appleboy/golang-testing
|
||||
@ -34,25 +32,32 @@ pipeline:
|
||||
when:
|
||||
event: [ tag ]
|
||||
|
||||
docker:
|
||||
publish_server:
|
||||
image: plugins/docker
|
||||
repo: ${DRONE_REPO}
|
||||
tags: [ '${DRONE_TAG}' ]
|
||||
group: release
|
||||
pull: true
|
||||
secrets: [ docker_username, docker_password ]
|
||||
default_tags: true
|
||||
when:
|
||||
event: [ tag ]
|
||||
event: [ push, tag ]
|
||||
local: false
|
||||
|
||||
docker:
|
||||
publish_alpine:
|
||||
image: plugins/docker
|
||||
repo: ${DRONE_REPO}
|
||||
tags: [ 'latest' ]
|
||||
group: release
|
||||
pull: true
|
||||
dockerfile: Dockerfile.alpine
|
||||
secrets: [ docker_username, docker_password ]
|
||||
default_tags: true
|
||||
default_suffix: alpine
|
||||
when:
|
||||
event: [ push ]
|
||||
branch: [ master ]
|
||||
event: [ push, tag ]
|
||||
local: false
|
||||
|
||||
github:
|
||||
image: plugins/github-release
|
||||
pull: true
|
||||
group: release
|
||||
secrets: [ github_release_api_key ]
|
||||
files:
|
||||
- dist/release/*
|
||||
|
@ -1,5 +1,7 @@
|
||||
FROM centurylink/ca-certs
|
||||
|
||||
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>"
|
||||
|
||||
ADD drone-telegram /
|
||||
|
||||
ENTRYPOINT ["/drone-telegram"]
|
||||
|
10
Dockerfile.alpine
Normal file
10
Dockerfile.alpine
Normal file
@ -0,0 +1,10 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
RUN apk add -U --no-cache ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>"
|
||||
|
||||
ADD drone-telegram /
|
||||
|
||||
ENTRYPOINT ["/drone-telegram"]
|
@ -1,8 +0,0 @@
|
||||
FROM armhfbuild/alpine:3.4
|
||||
|
||||
RUN apk update && \
|
||||
apk add ca-certificates && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
ADD drone-telegram /bin/
|
||||
ENTRYPOINT ["/bin/drone-telegram"]
|
Loading…
Reference in New Issue
Block a user