forked from georgmangold/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
97 lines (84 loc) · 2.43 KB
/
.goreleaser.yml
File metadata and controls
97 lines (84 loc) · 2.43 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Make sure to check the documentation at http://goreleaser.com
version: 2
project_name: console
release:
name_template: "Release version {{.Tag}}"
github:
owner: georgmangold
name: console
before:
hooks:
# you may remove this if you don't use vgo
- go mod tidy
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
env:
- CGO_ENABLED=0
main: ./cmd/console/
flags:
- -trimpath
- --tags=kqueue,operator
ldflags:
- -s -w -X github.com/minio/console/pkg.ReleaseTag={{.Tag}} -X github.com/minio/console/pkg.CommitID={{.FullCommit}} -X github.com/minio/console/pkg.Version={{.Version}} -X github.com/minio/console/pkg.ShortCommitID={{.ShortCommit}} -X github.com/minio/console/pkg.ReleaseTime={{.Date}}
archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
formats: [ 'binary' ]
snapshot:
version_template: SNAPSHOT@{{.ShortCommit}}
changelog:
sort: asc
nfpms:
- vendor: "Georg Mangold"
homepage: https://github.com/georgmangold/console
maintainer: "Georg Mangold"
description: Console UI for MinIO Server
license: GNU Affero General Public License v3.0
bindir: /usr/local/bin
formats:
- deb
- rpm
contents:
# Basic file that applies to all packagers
- src: systemd/console.service
dst: /etc/systemd/system/minio-console.service
dockers:
- image_templates:
- "ghcr.io/georgmangold/console:{{ .Tag }}-amd64"
use: buildx
goarch: amd64
dockerfile: Dockerfile.release
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=TAG={{ .Tag }}"
- image_templates:
- "ghcr.io/georgmangold/console:{{ .Tag }}-arm64"
use: buildx
goarch: arm64
goos: linux
dockerfile: Dockerfile.release
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=TAG={{ .Tag }}"
docker_manifests:
- name_template: ghcr.io/georgmangold/console:{{ .Tag }}
image_templates:
- ghcr.io/georgmangold/console:{{ .Tag }}-amd64
- ghcr.io/georgmangold/console:{{ .Tag }}-arm64
- name_template: ghcr.io/georgmangold/console:latest
image_templates:
- ghcr.io/georgmangold/console:{{ .Tag }}-amd64
- ghcr.io/georgmangold/console:{{ .Tag }}-arm64