-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
40 lines (40 loc) · 1.11 KB
/
.goreleaser.yaml
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
# Customization options: https://goreleaser.com/customization/
project_name: git-synchronizer
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- no_unique_dist_dir: false
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X go.szostok.io/version.version={{.Version}}
- -X go.szostok.io/version.buildDate={{.Date}}
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
algorithm: sha512
changelog:
sort: asc
dockers:
- goos: linux
goarch: amd64
image_templates:
- "ghcr.io/insightsengineering/{{ .ProjectName }}:{{ .Version }}"
- "ghcr.io/insightsengineering/{{ .ProjectName }}:latest"
skip_push: false
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--build-arg=PROJECT_NAME={{ .ProjectName }}"
- "--platform=linux/amd64"