Skip to content

Commit ce948a3

Browse files
committed
Add docker related section to .goreleaser.yml and increase Go default version
1 parent c588e97 commit ce948a3

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.goreleaser.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
env:
2+
- GO_VERSION=1.16
3+
4+
before:
5+
hooks:
6+
- go mod download
7+
18
builds:
29
- main: ./cmd/mnd/main.go
310
binary: mnd
@@ -27,3 +34,21 @@ brews:
2734
system "#{bin}/mnd --version"
2835
install: |
2936
bin.install "mnd"
37+
38+
dockers:
39+
-
40+
goos: linux
41+
goarch: amd64
42+
image_templates:
43+
- "tommymuehle/go-mnd:latest"
44+
- "tommymuehle/go-mnd:{{ .Tag }}"
45+
build_flag_templates:
46+
- "--build-arg=GO_VERSION={{.Env.GO_VERSION}}"
47+
extra_files:
48+
- checks
49+
- cmd
50+
- config
51+
- analyzer.go
52+
- entrypoint.sh
53+
- go.mod
54+
- go.sum

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG GO_VERSION=1.15
1+
ARG GO_VERSION=1.16
22

33
FROM golang:${GO_VERSION}-alpine AS builder
44
RUN apk add --update --no-cache make git curl gcc libc-dev

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GIT_TAG?= $(shell git describe --abbrev=0)
22

3-
GO_VERSION = 1.15
3+
GO_VERSION = 1.16
44
BUILDFLAGS := '-w -s'
55

66
IMAGE_REPO = "tommymuehle"

0 commit comments

Comments
 (0)