-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
53 lines (47 loc) · 1.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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
project_name: k8s-toolbox
version: 2
snapshot:
version_template: "{{ .Tag }}-next"
# changelog:
# sort: asc
# use: github-native
builds:
- skip: true
dockers:
- image_templates:
- "oryd/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "oryd/{{ .ProjectName }}:{{ .ShortCommit }}-amd64"
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=BUILD_ARCH=amd64"
dockerfile: "docker/Dockerfile"
use: "buildx"
- image_templates:
- "oryd/{{ .ProjectName }}:{{ .Tag }}-arm64"
- "oryd/{{ .ProjectName }}:{{ .ShortCommit }}-arm64"
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=BUILD_ARCH=arm64"
dockerfile: "docker/Dockerfile"
use: "buildx"
docker_manifests:
- name_template: "oryd/{{ .ProjectName }}:{{ .Tag }}"
id: "tag"
image_templates:
- "oryd/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "oryd/{{ .ProjectName }}:{{ .Tag }}-arm64"
- name_template: "oryd/{{ .ProjectName }}:latest"
id: "latest"
image_templates:
- "oryd/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "oryd/{{ .ProjectName }}:{{ .Tag }}-arm64"
release:
prerelease: auto
name_template: "{{ .Tag }}"
# Temporary, until we regenerate valid tokens
disable: true
skip_upload: true