-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
executable file
·42 lines (37 loc) · 1.3 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
41
42
project_name: SecretLinks
builds:
- id: linux
ldflags:
- -s -w # do not include debug symbols in executables
- -X 'main.version={{.Version}}' # set version information in-program
env: [CGO_ENABLED=0]
goos: [linux]
goarch: [amd64]
goamd64: [v1]
archives:
- format: zip
changelog:
filters:
exclude:
- '^(?i)ci:'
- '^(?i)readme:'
release:
name_template: "Version {{.Version}}"
prerelease: auto
draft: true
dockers:
- use: buildx
ids: [linux]
dockerfile: Dockerfile.goreleaser
image_templates:
- ghcr.io/jantari/secretlinks:latest
- ghcr.io/jantari/secretlinks:{{.Version}}
- "{{ if not .Prerelease }}ghcr.io/jantari/secretlinks:stable{{ end }}"
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.title=SecretLinks"
- "--label=org.opencontainers.image.description=SecretLinks is a simple password and secret sharing service"
- "--label=org.opencontainers.image.url=github.com/jantari/SecretLinks"
- "--label=org.opencontainers.image.source=github.com/jantari/SecretLinks"