Add Alpine Linux images (#745)

* Add Alpine Linux images.

Fixes #453
Fixes #528

* Move Dockerfiles to build directory.
This commit is contained in:
Trevor Pounds 2019-09-30 05:51:57 -04:00 committed by Isaev Denis
parent baff4ab35b
commit 605c9c2954
3 changed files with 15 additions and 1 deletions

View File

@ -55,10 +55,16 @@ changelog:
- Merge branch - Merge branch
dockers: dockers:
- image_templates: - dockerfile: build/Dockerfile
image_templates:
- "golangci/golangci-lint:latest" - "golangci/golangci-lint:latest"
- "golangci/golangci-lint:{{ .Tag }}" - "golangci/golangci-lint:{{ .Tag }}"
- "golangci/golangci-lint:v{{ .Major }}.{{ .Minor }}" - "golangci/golangci-lint:v{{ .Major }}.{{ .Minor }}"
- dockerfile: build/Dockerfile.alpine
image_templates:
- "golangci/golangci-lint:latest-alpine"
- "golangci/golangci-lint:{{ .Tag }}-alpine"
- "golangci/golangci-lint:v{{ .Major }}.{{ .Minor }}-alpine"
brews: brews:
- github: - github:

8
build/Dockerfile.alpine Normal file
View File

@ -0,0 +1,8 @@
FROM golang:1.13-alpine
# required to support cgo
RUN apk --no-cache add gcc musl-dev
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
COPY golangci-lint /usr/bin/
CMD ["golangci-lint"]