-
Notifications
You must be signed in to change notification settings - Fork 66
/
.goreleaser.yml
69 lines (61 loc) · 1.87 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
before:
hooks:
- make release-prepare
builds:
- main: ./cmd/k8up
binary: k8up
env:
- CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
goarch:
- amd64
- arm64
goos:
- darwin
- linux
- windows
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
dockers:
- image_templates:
- "ghcr.io/k8up-io/k8up:v{{ .Version }}-amd64"
- "quay.io/k8up-io/k8up:v{{ .Version }}-amd64"
goarch: amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
extra_files: &dockers_extra_files
- fetch_restic.sh
- go.mod
- image_templates:
- "ghcr.io/k8up-io/k8up:v{{ .Version }}-arm64"
- "quay.io/k8up-io/k8up:v{{ .Version }}-arm64"
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
extra_files: *dockers_extra_files
docker_manifests:
- name_template: "ghcr.io/k8up-io/k8up:v{{ .Version }}"
image_templates: &ghcr
- "ghcr.io/k8up-io/k8up:v{{ .Version }}-amd64"
- "ghcr.io/k8up-io/k8up:v{{ .Version }}-arm64"
- name_template: "quay.io/k8up-io/k8up:v{{ .Version }}"
image_templates: &quay
- "quay.io/k8up-io/k8up:v{{ .Version }}-amd64"
- "quay.io/k8up-io/k8up:v{{ .Version }}-arm64"
# 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.
- name_template: "{{ if not .Prerelease }}ghcr.io/k8up-io/k8up:v{{ .Major }}{{ end }}"
image_templates: *ghcr
- name_template: "{{ if not .Prerelease }}quay.io/k8up-io/k8up:v{{ .Major }}{{ end }}"
image_templates: *quay
- name_template: "{{ if not .Prerelease }}ghcr.io/k8up-io/k8up:latest{{ end }}"
image_templates: *ghcr
- name_template: "{{ if not .Prerelease }}quay.io/k8up-io/k8up:latest{{ end }}"
image_templates: *quay
release:
prerelease: auto
extra_files:
- glob: ./k8up-crd*.yaml