-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
39 lines (36 loc) · 1.01 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
project_name: markdown-or-hugo-to-medium
builds:
- id: default
main: ./main.go
binary: md-hugo-to-medium
ldflags:
- "-s -w -X main.version={{.Tag}} -X main.commit={{.FullCommit}} -X main.date={{.Date}}"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- 386
goarm:
- 6
- 7
mod_timestamp: "{{ .CommitTimestamp }}"
dockers:
- image_templates:
- "imrushi/markdown-or-hugo-to-medium:latest"
- "imrushi/markdown-or-hugo-to-medium:{{ .Tag }}"
dockerfile: Dockefile-goreleaser
build_flag_templates:
- "--label=org.opencontainers.image.title={{ .ProjectName }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.source={{ .GitURL }}"
- "--platform=linux/amd64"
changelog:
sort: asc