Debian Codegraph @

.goreleaser.yaml

raw
1 # Copyright 2023 The Archivista Contributors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 project_name: archivista
16 builds:
17 - ldflags:
18 - "-s -w"
19 - "-extldflags=-zrelro"
20 - "-extldflags=-znow"
21 - "-extldflags -w -X 'github.com/in-toto/archivista/cmd.Version={{.Tag}}-{{.ShortCommit}}'"
22 env:
23 - "CGO_ENABLED=0"
24 - "GO111MODULE=on"
25 - "GOFLAGS=-mod=readonly -trimpath"
26 goos:
27 - linux
28 - windows
29 - darwin
30 goarch:
31 - amd64
32 - arm64
33 main: ./cmd/archivista
34 binary: archivista
35 id: archivista
36 - ldflags:
37 - "-s -w"
38 - "-extldflags=-zrelro"
39 - "-extldflags=-znow"
40 - "-extldflags -w -X 'github.com/in-toto/archivistactl/cmd.Version={{.Tag}}-{{.ShortCommit}}'"
41 env:
42 - "CGO_ENABLED=0"
43 - "GO111MODULE=on"
44 - "GOFLAGS=-mod=readonly -trimpath"
45 goos:
46 - linux
47 - windows
48 - darwin
49 goarch:
50 - amd64
51 - arm64
52 main: ./cmd/archivistactl
53 binary: archivistactl
54 id: archivistactl
55 gomod:
56 proxy: false
57 source:
58 enabled: true
59 changelog:
60 use: github
61 groups:
62 - title: Features
63 regexp: "^.*feat[(\\w)]*:+.*$"
64 order: 0
65 - title: 'Bug fixes'
66 regexp: "^.*fix[(\\w)]*:+.*$"
67 order: 1
68 - title: 'Documentation'
69 regexp: "^.*docs[(\\w)]*:+.*$"
70 order: 2
71 - title: Others
72 order: 999
73 release:
74 prerelease: auto
75 github:
76 owner: "{{ .Env.GITHUB_REPOSITORY_OWNER }}"
77 dockers:
78 - image_templates:
79 - "ghcr.io/in-toto/archivista:{{ .Version }}-amd64"
80 use: buildx
81 build_flag_templates:
82 - "--pull"
83 - "--platform=linux/amd64"
84 extra_files:
85 - "archivista.graphql"
86 - "ent.graphql"
87 - "ent.resolvers.go"
88 - "entrypoint.sh"
89 - "gen.go"
90 - "generated.go"
91 - "go.mod"
92 - "go.sum"
93 - "resolver.go"
94 - "docs"
95 - "ent"
96 - "cmd"
97 - "ent"
98 - "pkg"
99 - image_templates:
100 - "ghcr.io/in-toto/archivista:{{ .Version }}-arm64"
101 use: buildx
102 build_flag_templates:
103 - "--pull"
104 - "--platform=linux/arm64"
105 extra_files:
106 - "archivista.graphql"
107 - "ent.graphql"
108 - "ent.resolvers.go"
109 - "entrypoint.sh"
110 - "gen.go"
111 - "generated.go"
112 - "go.mod"
113 - "go.sum"
114 - "resolver.go"
115 - "docs"
116 - "ent"
117 - "cmd"
118 - "ent"
119 - "pkg"
120 goarch: arm64
121 docker_manifests:
122 - name_template: "ghcr.io/in-toto/archivista:{{ .Version }}"
123 image_templates:
124 - "ghcr.io/in-toto/archivista:{{ .Version }}-amd64"
125 - "ghcr.io/in-toto/archivista:{{ .Version }}-arm64"
126 kos:
127 - repository: ghcr.io/in-toto/archivistactl
128 id: archivistactl
129 build: archivistactl
130 tags:
131 - '{{.Version}}'
132 bare: true
133 preserve_import_paths: false
134 creation_time: '{{.CommitTimestamp}}'
135 platforms:
136 - linux/amd64
137 - linux/arm64