-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
84 lines (73 loc) · 2.17 KB
/
.goreleaser.yml
File metadata and controls
84 lines (73 loc) · 2.17 KB
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
77
78
79
80
81
82
83
84
before:
hooks:
- make completions
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- env:
- CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
- GOEXPERIMENT=jsonv2
goarch:
- amd64
- arm64
goos:
- linux
- darwin
goarm:
- "8"
archives:
- files:
- README.md
- LICENSE
- contrib/completion/**/*
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
dockers:
- goarch: amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-amd64"
- goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64/v8"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"
docker_manifests:
## ghcr.io
# For prereleases, updating `latest` does not make sense.
# Only the image for the exact version should be pushed.
- name_template: "{{ if not .Prerelease }}{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:latest{{ end }}"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"
- name_template: "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}"
image_templates:
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-amd64"
- "{{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"
docker_signs:
- artifacts: manifests
args:
- sign
- --yes
- --oidc-provider=github-actions
- "${artifact}"
release:
prerelease: auto
brews:
- repository:
owner: vshn
name: homebrew-tap
token: "{{ .Env.HOMEBREW_REPO_TOKEN }}"
directory: Formula
homepage: "https://github.com/vshn/espejote"
description: An in-cluster templating controller.
install: |
bin.install "espejote"
bash_completion.install "contrib/completion/bash/espejote"
fish_completion.install "contrib/completion/fish/espejote"
zsh_completion.install "contrib/completion/zsh/_espejote"