-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yml
69 lines (61 loc) · 1.83 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# This .goreleaser.yml file configures GoReleaser to properly and reproducibly build `mllint` for Linux, MacOS and Windows
# It will also create a Docker container from the built executable and the given Dockerfile.
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X github.com/bvobart/mllint/commands.version={{.Version}} -X github.com/bvobart/mllint/commands.commit={{.Commit}} -X github.com/bvobart/mllint/commands.date={{.CommitDate}}
mod_timestamp: "{{ .CommitTimestamp }}"
# Build Docker containers of `mllint` for Python versions [3.6, 3.7, 3.8, 3.9, 3.10]
dockers:
- image_templates:
- bvobart/mllint:latest-py3.7
- bvobart/mllint:{{.Version}}-py3.7
build_flag_templates:
- --build-arg=python_version=3.7
extra_files:
- build/requirements-tools.txt
use: buildx
- image_templates:
- bvobart/mllint:latest-py3.8
- bvobart/mllint:{{.Version}}-py3.8
build_flag_templates:
- --build-arg=python_version=3.8
extra_files:
- build/requirements-tools.txt
use: buildx
- image_templates:
- bvobart/mllint:latest-py3.9
- bvobart/mllint:{{.Version}}-py3.9
build_flag_templates:
- --build-arg=python_version=3.9
extra_files:
- build/requirements-tools.txt
use: buildx
- image_templates:
- bvobart/mllint:latest
- bvobart/mllint:{{.Version}}
- bvobart/mllint:latest-py3.10
- bvobart/mllint:{{.Version}}-py3.10
build_flag_templates:
- --build-arg=python_version=3.10
extra_files:
- build/requirements-tools.txt
use: buildx
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
changelog:
filters:
exclude: []