Debian Codegraph @

.goreleaser.yml

raw symbols SCIP
1 project_name: timestamp-authority
2
3 version: 2
4
5 env:
6 - GO111MODULE=on
7 - CGO_ENABLED=0
8 - DOCKER_CLI_EXPERIMENTAL=enabled
9 - COSIGN_YES=true
10
11 # Prevents parallel builds from stepping on eachothers toes downloading modules
12 before:
13 hooks:
14 - go mod tidy
15 - /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
16
17 gomod:
18 proxy: true
19
20 sboms:
21 - artifacts: binary
22
23 builds:
24 - id: timestamp-server
25 binary: timestamp-server-linux-{{ .Arch }}
26 no_unique_dist_dir: true
27 main: ./cmd/timestamp-server
28 goos:
29 - linux
30 goarch:
31 - amd64
32 - arm64
33 - arm
34 goarm:
35 - 7
36 flags:
37 - -trimpath
38 mod_timestamp: '{{ .CommitTimestamp }}'
39 ldflags:
40 - "{{ .Env.LDFLAGS }}"
41
42 - id: timestamp-cli
43 binary: timestamp-cli-{{ .Os }}-{{ .Arch }}
44 no_unique_dist_dir: true
45 main: ./cmd/timestamp-cli
46 goos:
47 - linux
48 - darwin
49 - windows
50 goarch:
51 - amd64
52 - arm64
53 - arm
54 goarm:
55 - 7
56 ignore:
57 - goos: windows
58 goarch: arm64
59 flags:
60 - -trimpath
61 mod_timestamp: '{{ .CommitTimestamp }}'
62 ldflags:
63 - "{{ .Env.LDFLAGS }}"
64
65 signs:
66 # Keyless
67 - id: keyless
68 signature: "${artifact}-keyless.sigstore.json"
69 cmd: cosign
70 args: ["sign-blob", "--bundle", "${signature}", "${artifact}"]
71 artifacts: binary
72 - id: checksum-keyless
73 signature: "${artifact}-keyless.sigstore.json"
74 cmd: cosign
75 args: ["sign-blob", "--bundle", "${signature}", "${artifact}"]
76 artifacts: checksum
77
78 archives:
79 - formats: [ "binary" ]
80 name_template: "{{ .Binary }}"
81 allow_different_binary_count: true
82
83 checksum:
84 name_template: "{{ .ProjectName }}_checksums.txt"
85
86 snapshot:
87 version_template: SNAPSHOT-{{ .ShortCommit }}
88
89 release:
90 prerelease: auto
91 draft: true # allow for manual edits
92 github:
93 owner: sigstore
94 name: timestamp-authority