diff --git a/.drone.yml b/.drone.yml index 9682264..71562c1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -83,6 +83,19 @@ pipeline: event: [ push, tag ] local: false + publish_linux_alpine: + image: plugins/docker + group: release + pull: true + dockerfile: Dockerfile.alpine + secrets: [ docker_username, docker_password ] + default_tags: true + default_suffix: alpine + repo: ${DRONE_REPO} + when: + event: [ push, tag ] + local: false + publish_linux_arm: image: plugins/docker group: release diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 0000000..c852b71 --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,16 @@ +FROM alpine:3.6 + +LABEL org.label-schema.version=latest +LABEL org.label-schema.vcs-url="https://github.com/appleboy/gorush.git" +LABEL org.label-schema.name="Gorush" +LABEL org.label-schema.vendor="Bo-Yi Wu" +LABEL org.label-schema.schema-version="1.0" +LABEL maintainer="Bo-Yi Wu " + +RUN apk add -U --no-cache ca-certificates && \ + rm -rf /var/cache/apk/* + +ADD bin/gorush / + +EXPOSE 8088 9000 +ENTRYPOINT ["/gorush"]