-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yaml
64 lines (64 loc) · 1.87 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
project_name: perseus
before:
hooks:
- go mod tidy
builds:
- id: perseus-cli
main: .
binary: perseus
flags:
- -trimpath
env:
- CGO_ENABLED=0
goarch:
- '386'
- amd64
- arm
- arm64
goarm:
- '6'
- '7'
goos:
- linux
- darwin
- windows
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
dockers:
- id: perseus-service
ids:
- perseus-cli
image_templates:
- "ghcr.io/crowdstrike/perseus:latest"
- "ghcr.io/crowdstrike/perseus:{{ .Version }}"
goos: linux
goarch: amd64
dockerfile: Dockerfile.service
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.created={{ .Date }}'
- '--label=org.opencontainers.image.name={{ .ProjectName }}'
- '--label=org.opencontainers.image.revision={{ .FullCommit }}'
- '--label=org.opencontainers.image.version={{ .Version }}'
- '--label=org.openconatiners.image.licenses=MIT'
- '--label=org.opencontainers.image.source=https://github.com/CrowdStrike/perseus'
- >
--label=org.opencontainers.image.description=A Docker image to run a containerized Perseus server.
This image is built from a 'scratch' base image and runs "perseus server", exposing port 31138 from the container.
You must specify the following environment variables: DB_ADDR (the address of the Perseus database),
DB_USER (the login for the database) and DB_PASS (the login password for the database).
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incminor .Version }}-pre.{{.Timestamp}}.{{.ShortCommit}}"
changelog:
use: github-native
filters:
exclude:
- '^(docs|test)(\\(.+\\))?:'
release:
prerelease: auto
mode: append