File: .goreleaser.yml

package info (click to toggle)
minio-client 0.0~20250403-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,080 kB
  • sloc: sh: 1,011; makefile: 87
file content (167 lines) | stat: -rw-r--r-- 3,597 bytes parent folder | download
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
project_name: mc

release:
   name_template: "Version {{.Version}}"
   disable: true
   github:
    owner: minio
    name: mc

env:
  - CGO_ENABLED=0
  - GO111MODULE=on

before:
  hooks:
    - make clean
    - go generate ./...
    - go mod tidy
    - go mod download

builds:
  -
    goos:
      - linux
      - darwin
      - windows
      - freebsd

    goarch:
      - amd64
      - arm64
      - arm
      - ppc64le
      - s390x

    goarm:
      - 7

    ignore:
      - goos: darwin
        goarch: arm64
      - goos: darwin
        goarch: arm
      - goos: darwin
        goarch: ppc64le
      - goos: darwin
        goarch: s390x
      - goos: windows
        goarch: arm64
      - goos: windows
        goarch: arm
      - goos: windows
        goarch: ppc64le
      - goos: windows
        goarch: s390x
      - goos: freebsd
        goarch: arm
      - goos: freebsd
        goarch: arm64
      - goos: freebsd
        goarch: ppc64le
      - goos: freebsd
        goarch: s390x

    flags:
      - -tags=kqueue
      - -trimpath

    ldflags:
      - "-s -w -X github.com/minio/mc/cmd.Version={{.Version}} -X github.com/minio/mc/cmd.ReleaseTag={{.Tag}} -X github.com/minio/mc/cmd.CommitID={{.FullCommit}} -X github.com/minio/mc/cmd.ShortCommitID={{.ShortCommit}}"

archives:
  -
    format: binary
    name_template: "{{ .Binary }}-release/{{ .Os }}-{{ .Arch }}/{{ .Binary }}.{{ .Version }}"

nfpms:
  -
    id: minio
    package_name: mc
    vendor: MinIO, Inc.
    homepage: https://min.io/
    maintainer: dev@min.io
    description: MinIO Client (mc) provides a modern alternative to UNIX commands like ls, cat, cp, mirror, diff, find etc. It supports filesystems and Amazon S3 compatible cloud storage service (AWS Signature v2 and v4).
    license: Apache 2.0
    bindir: /usr/bin
    formats:
      - deb
      - rpm
    overrides:
      deb:
        file_name_template: "{{ .Binary }}-release/debs/{{ .ProjectName }}-{{ .Version }}_{{ .Arch }}"
        replacements:
          arm: armv7
        files:
          "NOTICE": "/usr/share/mc/NOTICE"
          "CREDITS": "/usr/share/mc/CREDITS"
          "LICENSE": "/usr/share/mc/LICENSE"
          "README.md": "/usr/share/mc/README.md"
      rpm:
        file_name_template: "{{ .Binary }}-release/rpms/{{ .ProjectName }}-{{ .Version }}.{{ .Arch }}"
        replacements:
          amd64: x86_64
          arm64: aarch64
          arm: armv7
        files:
          "NOTICE": "/usr/share/mc/NOTICE"
          "CREDITS": "/usr/share/mc/CREDITS"
          "LICENSE": "/usr/share/mc/LICENSE"
          "README.md": "/usr/share/mc/README.md"

checksum:
  algorithm: sha256

signs:
  -
    signature: "${artifact}.asc"
    cmd: "sh"
    args:
      - '-c'
      - 'gpg --quiet --detach-sign -a ${artifact}'
    artifacts: all

changelog:
  sort: asc
  filters:
    exclude:
      - '^Update yaml files'

dockers:
  -
    goos: linux
    goarch: amd64
    dockerfile: Dockerfile.release
    image_templates:
      - minio/mc:{{ .Tag }}
      - minio/mc:latest

  -
    goos: linux
    goarch: ppc64le
    dockerfile: Dockerfile.ppc64le.release
    image_templates:
      - minio/mc:{{ .Tag }}-ppc64le

  -
    goos: linux
    goarch: s390x
    dockerfile: Dockerfile.s390x.release
    image_templates:
      - minio/mc:{{ .Tag }}-s390x

  -
    goos: linux
    goarch: arm64
    goarm: ''
    dockerfile: Dockerfile.arm64.release
    image_templates:
      - minio/mc:{{ .Tag }}-arm64

  -
    goos: linux
    goarch: arm
    goarm: '7'
    dockerfile: Dockerfile.arm.release
    image_templates:
      - minio/mc:{{ .Tag }}-arm