Skip to content

Commit 605c9c2

Browse files
tpoundsjirfag
authored andcommitted
Add Alpine Linux images (#745)
* Add Alpine Linux images. Fixes #453 Fixes #528 * Move Dockerfiles to build directory.
1 parent baff4ab commit 605c9c2

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.goreleaser.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,16 @@ changelog:
5555
- Merge branch
5656

5757
dockers:
58-
- image_templates:
58+
- dockerfile: build/Dockerfile
59+
image_templates:
5960
- "golangci/golangci-lint:latest"
6061
- "golangci/golangci-lint:{{ .Tag }}"
6162
- "golangci/golangci-lint:v{{ .Major }}.{{ .Minor }}"
63+
- dockerfile: build/Dockerfile.alpine
64+
image_templates:
65+
- "golangci/golangci-lint:latest-alpine"
66+
- "golangci/golangci-lint:{{ .Tag }}-alpine"
67+
- "golangci/golangci-lint:v{{ .Major }}.{{ .Minor }}-alpine"
6268

6369
brews:
6470
- github:
File renamed without changes.

build/Dockerfile.alpine

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM golang:1.13-alpine
2+
3+
# required to support cgo
4+
RUN apk --no-cache add gcc musl-dev
5+
6+
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
7+
COPY golangci-lint /usr/bin/
8+
CMD ["golangci-lint"]

0 commit comments

Comments
 (0)