-
Notifications
You must be signed in to change notification settings - Fork 61
/
.goreleaser.yml
76 lines (65 loc) · 2.42 KB
/
.goreleaser.yml
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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- main: ./cmd/k8up
binary: k8up
env:
- CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
goarch:
- amd64
goos:
- linux
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-snapshot"
dockers:
- image_templates:
- "docker.io/vshn/k8up:{{ .Version }}"
- "quay.io/vshn/k8up:{{ .Version }}"
# For prereleases, updating `latest` and the floating tags of the major
# version does not make sense. Only the image for the exact version should
# be pushed.
- "{{ if not .Prerelease }}docker.io/vshn/k8up:v{{ .Major }}{{ end }}"
- "{{ if not .Prerelease }}quay.io/vshn/k8up:v{{ .Major }}{{ end }}"
- "{{ if not .Prerelease }}docker.io/vshn/k8up:latest{{ end }}"
- "{{ if not .Prerelease }}quay.io/vshn/k8up:latest{{ end }}"
build_flag_templates:
- "--target=k8up"
extra_files:
- wrestic/wrestic.sh
- image_templates:
- "docker.io/vshn/wrestic:{{ .Version }}-nonroot"
- "quay.io/vshn/wrestic:{{ .Version }}-nonroot"
# For prereleases, updating `latest` and the floating tags of the major
# version does not make sense. Only the image for the exact version should
# be pushed.
- "{{ if not .Prerelease }}docker.io/vshn/wrestic:v{{ .Major }}{{ end }}-nonroot"
- "{{ if not .Prerelease }}quay.io/vshn/wrestic:v{{ .Major }}{{ end }}-nonroot"
- "{{ if not .Prerelease }}docker.io/vshn/wrestic:latest{{ end }}-nonroot"
- "{{ if not .Prerelease }}quay.io/vshn/wrestic:latest{{ end }}-nonroot"
build_flag_templates:
- "--target=wrestic"
extra_files:
- wrestic/wrestic.sh
- image_templates:
- "docker.io/vshn/wrestic:{{ .Version }}"
- "quay.io/vshn/wrestic:{{ .Version }}"
# For prereleases, updating `latest` and the floating tags of the major
# version does not make sense. Only the image for the exact version should
# be pushed.
- "{{ if not .Prerelease }}docker.io/vshn/wrestic:v{{ .Major }}{{ end }}"
- "{{ if not .Prerelease }}quay.io/vshn/wrestic:v{{ .Major }}{{ end }}"
- "{{ if not .Prerelease }}docker.io/vshn/wrestic:latest{{ end }}"
- "{{ if not .Prerelease }}quay.io/vshn/wrestic:latest{{ end }}"
build_flag_templates:
- "--target=wrestic-root"
extra_files:
- wrestic/wrestic.sh
release:
prerelease: auto
github:
owner: vshn
name: k8up
extra_files:
- glob: ./k8up-crd*.yaml