-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
67 lines (65 loc) · 1.69 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
65
66
67
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
# before:
# hooks:
# You may remove this if you don't use go modules.
# - go mod tidy
builds:
- main: ./cmd
binary: 3eye
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/{{ .Env.REPO_NAME }}/watcher.Version={{ .Version }}
changelog:
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Others
order: 999
filters:
exclude:
- "^docs:"
- "^build:"
- "^chore:"
- "^test:"
- "^[Mm]erge"
dockers:
# Production image without shell
- id: production
goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.production
image_templates:
- "ghcr.io/{{ tolower .Env.REPO_NAME }}:latest"
- "ghcr.io/{{ tolower .Env.REPO_NAME }}:{{ .Version }}"
# Debug image which we can ssh into
- id: debug
goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.debug
image_templates:
- "ghcr.io/{{ tolower .Env.REPO_NAME }}:debug"
- "ghcr.io/{{ tolower .Env.REPO_NAME }}:{{ .Version }}-debug"
# Image to run migrations from
- id: migrate
goos: linux
goarch: amd64
dockerfile: docker/Dockerfile.migrate
image_templates:
- "ghcr.io/{{ tolower .Env.REPO_NAME }}:migrate"
- "ghcr.io/{{ tolower .Env.REPO_NAME }}:{{ .Version }}-migrate"
extra_files:
# migrations folder from github
- "migrations"
# Custom migrate script
- "docker/3eye-migrate.sh"