mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
* update missing places that was using go1.20 Signed-off-by: cpanato <ctadeu@gmail.com> * use go-version-file: 'go.mod' in actions/setup-go Signed-off-by: cpanato <ctadeu@gmail.com> * use golang:latest Signed-off-by: cpanato <ctadeu@gmail.com> * update go.mod to go1.21 Signed-off-by: cpanato <ctadeu@gmail.com> * drop codecov Signed-off-by: cpanato <ctadeu@gmail.com> * fix checkout order Signed-off-by: cpanato <ctadeu@gmail.com> * moar fixes Signed-off-by: cpanato <ctadeu@gmail.com> --------- Signed-off-by: cpanato <ctadeu@gmail.com>
77 lines
1.5 KiB
YAML
77 lines
1.5 KiB
YAML
# Make sure to check the documentation at http://goreleaser.com
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
- /bin/bash -c 'if [ -n "$(git --no-pager diff --exit-code go.mod go.sum)" ]; then exit 1; fi'
|
|
|
|
builds:
|
|
- id: binary
|
|
main: ./main.go
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- "-s -w -X github.com/google/ko/pkg/commands.Version={{.Version}}"
|
|
goos:
|
|
- windows
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- s390x
|
|
- 386
|
|
- mips64le
|
|
- ppc64le
|
|
- riscv64
|
|
|
|
kos:
|
|
- id: ko-image
|
|
build: binary
|
|
main: .
|
|
base_image: golang:latest
|
|
ldflags:
|
|
- "-s -w -X github.com/google/ko/pkg/commands.Version={{.Version}}"
|
|
platforms:
|
|
- all
|
|
tags:
|
|
- '{{ .Tag }}'
|
|
- '{{ .FullCommit }}'
|
|
- latest
|
|
sbom: spdx
|
|
bare: true
|
|
preserve_import_paths: false
|
|
base_import_paths: false
|
|
|
|
archives:
|
|
- id: with-version
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- .Version }}_
|
|
{{- title .Os }}_
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
- id: without-version
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- title .Os }}_
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "386" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
name_template: "{{ .Tag }}-next"
|
|
|
|
changelog:
|
|
sort: asc
|
|
use: github
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|