This repository has been archived by the owner on Jun 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
82 lines (68 loc) · 2.14 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
77
78
79
80
81
82
---
archives:
- name_template: 'epinio-{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
amd64: x86_64
format: binary
format_overrides:
- goos: windows
format: zip
before:
hooks:
- go mod download
builds:
- id: epinio-installer
main: ./cmd/epinio-installer/main.go
binary: epinio-installer
ldflags:
- -w -s
- -X "github.com/epinio/installer/internal/version.Version={{ .Tag }}"
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- arm
changelog:
## Delegate Changelog to release-drafter
skip: true
env:
- CGO_ENABLED=0
snapshot:
name_template: "{{ .Tag }}-next"
dockers:
-
# ID of the image, needed if you want to filter by it later on (e.g. on custom publishers).
id: epinio-installer-noassets
# GOOS of the built binaries/packages that should be used.
goos: linux
# GOARCH of the built binaries/packages that should be used.
goarch: amd64
# IDs to filter the binaries/packages.
ids:
- epinio-installer
# Templates of the Docker image names.
image_templates:
- "ghcr.io/epinio/epinio-installer-noassets:{{ .Tag }}"
- "ghcr.io/epinio/epinio-installer-noassets:latest"
# Skips the docker push.
#skip_push: "true"
# Path to the Dockerfile (from the project root).
dockerfile: Dockerfile
use: docker
# Template of the docker build flags.
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title=epinio-{{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/epinio/installer"
- "--build-arg=HELM_VERSION={{.Env.HELM_VERSION}}"
- "--build-arg=HELM_CHECKSUM={{.Env.HELM_CHECKSUM}}"
- "--build-arg=KUBECTL_VERSION={{.Env.KUBECTL_VERSION}}"
- "--build-arg=KUBECTL_CHECKSUM={{.Env.KUBECTL_CHECKSUM}}"
- "--build-arg=DIST_BINARY=epinio-installer"
- "--platform=linux/amd64"