1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00
ctrl/.notinuse-goreleaser.yaml

60 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2023-06-20 05:55:01 +00:00
env:
- DOCKER_REGISTRY={{ if index .Env "DOCKER_REGISTRY" }}{{ .Env.DOCKER_REGISTRY }}{{ else }}localrepo{{ end }}
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
main: ./cmd/ctrl/main.go
binary: ctrl
2023-06-20 05:55:01 +00:00
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
dockers:
- use: buildx
dockerfile: Dockerfile_release
goos: linux
goarch: amd64
image_templates:
- "{{ .Env.DOCKER_REGISTRY }}/{{ .ProjectName }}:{{ .Version }}-amd64"
- "{{ .Env.DOCKER_REGISTRY }}/{{ .ProjectName }}:latest"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
nfpms:
- vendor: Raa Labs AS
homepage: https://github.com/postmannen/ctrl
2023-06-20 05:55:01 +00:00
maintainer: Bjørn Tore Svinningen <postmannen@gmail.com>
description: |-
2023-06-30 03:28:42 +00:00
Infrastructure controller
2023-06-20 05:55:01 +00:00
license: MIT
formats:
- rpm
bindir: /usr/local/ctrl/
2023-06-20 05:55:01 +00:00
contents:
- src: LICENSE
dst: /usr/share/doc/ctrl/LICENSE
2023-06-20 05:55:01 +00:00
file_info:
owner: root
group: root
mode: 0644
- src: README.md
dst: /usr/share/doc/ctrl/README.md
2023-06-20 05:55:01 +00:00
file_info:
owner: root
group: root
mode: 0644