2019-03-04 14:13:56 +01:00
|
|
|
env:
|
|
|
|
- GO111MODULE=on
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2018-10-29 01:36:46 +01:00
|
|
|
before:
|
|
|
|
hooks:
|
2021-04-23 14:29:19 +02:00
|
|
|
- go mod tidy
|
|
|
|
- ./scripts/completions.sh
|
2022-02-03 03:30:46 +01:00
|
|
|
- ./scripts/manpages.sh
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2021-04-15 23:08:08 +02:00
|
|
|
gomod:
|
|
|
|
proxy: true
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2018-02-16 23:38:45 +01:00
|
|
|
builds:
|
2018-02-17 01:21:51 +01:00
|
|
|
- main: ./cmd/nfpm
|
2018-02-16 23:38:45 +01:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- darwin
|
2020-05-26 05:47:25 +02:00
|
|
|
- windows
|
2018-02-16 23:38:45 +01:00
|
|
|
goarch:
|
|
|
|
- amd64
|
2020-12-31 20:49:13 +01:00
|
|
|
- arm64
|
2021-04-23 14:29:19 +02:00
|
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
|
|
flags:
|
|
|
|
- -trimpath
|
|
|
|
ldflags:
|
|
|
|
- -s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2018-06-15 21:33:52 +02:00
|
|
|
dockers:
|
2019-03-04 14:18:18 +01:00
|
|
|
- image_templates:
|
2020-12-31 14:32:17 +01:00
|
|
|
- 'goreleaser/nfpm:{{ .Tag }}-amd64'
|
|
|
|
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-amd64'
|
|
|
|
dockerfile: Dockerfile
|
2021-10-13 03:08:25 +02:00
|
|
|
use: buildx
|
2020-12-31 14:32:17 +01:00
|
|
|
build_flag_templates:
|
|
|
|
- "--pull"
|
|
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
|
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
|
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
|
|
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
- image_templates:
|
|
|
|
- 'goreleaser/nfpm:{{ .Tag }}-arm64v8'
|
|
|
|
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-arm64v8'
|
|
|
|
dockerfile: Dockerfile
|
2021-10-13 03:08:25 +02:00
|
|
|
use: buildx
|
2020-12-31 14:32:17 +01:00
|
|
|
build_flag_templates:
|
|
|
|
- "--pull"
|
|
|
|
- "--label=org.opencontainers.image.created={{.Date}}"
|
|
|
|
- "--label=org.opencontainers.image.name={{.ProjectName}}"
|
|
|
|
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
|
|
|
|
- "--label=org.opencontainers.image.version={{.Version}}"
|
|
|
|
- "--label=org.opencontainers.image.source={{.GitURL}}"
|
2020-12-31 19:29:49 +01:00
|
|
|
- "--platform=linux/arm64/v8"
|
2020-12-31 14:32:17 +01:00
|
|
|
goarch: arm64
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2020-12-31 14:32:17 +01:00
|
|
|
docker_manifests:
|
|
|
|
- name_template: 'goreleaser/nfpm:{{ .Tag }}'
|
|
|
|
image_templates:
|
|
|
|
- 'goreleaser/nfpm:{{ .Tag }}-amd64'
|
|
|
|
- 'goreleaser/nfpm:{{ .Tag }}-arm64v8'
|
|
|
|
- name_template: 'ghcr.io/goreleaser/nfpm:{{ .Tag }}'
|
|
|
|
image_templates:
|
|
|
|
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-amd64'
|
|
|
|
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-arm64v8'
|
|
|
|
- name_template: 'goreleaser/nfpm:latest'
|
|
|
|
image_templates:
|
|
|
|
- 'goreleaser/nfpm:{{ .Tag }}-amd64'
|
|
|
|
- 'goreleaser/nfpm:{{ .Tag }}-arm64v8'
|
|
|
|
- name_template: 'ghcr.io/goreleaser/nfpm:latest'
|
|
|
|
image_templates:
|
|
|
|
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-amd64'
|
|
|
|
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-arm64v8'
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2020-01-15 18:28:42 +01:00
|
|
|
archives:
|
|
|
|
- replacements:
|
2018-02-16 23:38:45 +01:00
|
|
|
darwin: Darwin
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
386: i386
|
|
|
|
amd64: x86_64
|
2021-04-23 14:29:19 +02:00
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
- LICENSE.md
|
|
|
|
- completions/*
|
2022-02-03 03:30:46 +01:00
|
|
|
- manpages/*
|
2021-10-10 19:44:08 +02:00
|
|
|
|
2020-01-15 18:28:42 +01:00
|
|
|
brews:
|
2020-12-31 14:32:17 +01:00
|
|
|
- tap:
|
2018-02-16 23:38:45 +01:00
|
|
|
owner: goreleaser
|
|
|
|
name: homebrew-tap
|
|
|
|
folder: Formula
|
2021-10-10 19:44:08 +02:00
|
|
|
homepage: https://nfpm.goreleaser.com
|
2021-06-27 03:01:53 +02:00
|
|
|
description: nFPM is a simple, 0-dependencies, deb, rpm and apk packager.
|
2021-10-10 19:44:08 +02:00
|
|
|
license: MIT
|
2018-02-16 23:38:45 +01:00
|
|
|
test: |
|
|
|
|
system "#{bin}/nfpm -v"
|
2021-04-23 14:29:19 +02:00
|
|
|
install: |-
|
|
|
|
bin.install "nfpm"
|
|
|
|
bash_completion.install "completions/nfpm.bash" => "nfpm"
|
|
|
|
zsh_completion.install "completions/nfpm.zsh" => "_nfpm"
|
|
|
|
fish_completion.install "completions/nfpm.fish"
|
2022-02-03 03:30:46 +01:00
|
|
|
man1.install "manpages/nfpm.1.gz"
|
2021-10-10 19:44:08 +02:00
|
|
|
|
|
|
|
rigs:
|
|
|
|
- rig:
|
|
|
|
owner: goreleaser
|
|
|
|
name: fish-food
|
|
|
|
homepage: https://nfpm.goreleaser.com
|
|
|
|
description: nFPM is a simple, 0-dependencies, deb, rpm and apk packager.
|
|
|
|
license: MIT
|
|
|
|
|
|
|
|
scoop:
|
|
|
|
bucket:
|
|
|
|
owner: goreleaser
|
|
|
|
name: scoop-bucket
|
|
|
|
homepage: https://nfpm.goreleaser.com
|
|
|
|
description: nFPM is a simple, 0-dependencies, deb, rpm and apk packager.
|
|
|
|
license: MIT
|
|
|
|
|
2020-01-15 18:28:42 +01:00
|
|
|
nfpms:
|
2020-05-14 16:17:26 +02:00
|
|
|
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}'
|
2021-10-10 19:44:08 +02:00
|
|
|
homepage: https://nfpm.goreleaser.com
|
2022-02-03 13:20:21 +01:00
|
|
|
description: |-
|
|
|
|
A simple, 0-dependencies, deb, rpm and apk packager.
|
|
|
|
nFPM (not FPM) is configurable via YAML and does not need any packaging software installed.
|
|
|
|
maintainer: Carlos Alexandro Becker <carlos@becker.software>
|
2018-02-17 15:25:39 +01:00
|
|
|
license: MIT
|
|
|
|
vendor: GoReleaser
|
|
|
|
formats:
|
2021-03-01 17:48:29 +01:00
|
|
|
- apk
|
2018-04-10 19:29:38 +02:00
|
|
|
- deb
|
|
|
|
- rpm
|
2022-02-03 13:20:21 +01:00
|
|
|
bindir: /usr/bin
|
|
|
|
section: utils
|
2021-04-23 14:29:19 +02:00
|
|
|
contents:
|
|
|
|
- src: ./completions/nfpm.bash
|
2022-02-03 13:20:21 +01:00
|
|
|
dst: /usr/share/bash-completion/completions
|
|
|
|
file_info:
|
|
|
|
mode: 0644
|
2021-04-23 14:29:19 +02:00
|
|
|
- src: ./completions/nfpm.fish
|
|
|
|
dst: /usr/share/fish/completions/nfpm.fish
|
2022-02-03 13:20:21 +01:00
|
|
|
file_info:
|
|
|
|
mode: 0644
|
2021-04-23 14:29:19 +02:00
|
|
|
- src: ./completions/nfpm.zsh
|
2022-02-03 13:20:21 +01:00
|
|
|
dst: /usr/share/zsh/vendor-completions/_nfpm
|
|
|
|
file_info:
|
|
|
|
mode: 0644
|
2022-02-03 03:30:46 +01:00
|
|
|
- src: ./manpages/nfpm.1.gz
|
|
|
|
dst: /usr/share/man/man1/nfpm.1.gz
|
2022-02-03 13:20:21 +01:00
|
|
|
file_info:
|
|
|
|
mode: 0644
|
|
|
|
- src: ./LICENSE.md
|
|
|
|
dst: /usr/share/doc/nfpm/copyright
|
|
|
|
file_info:
|
|
|
|
mode: 0644
|
|
|
|
- src: .lintian-overrides
|
|
|
|
dst: ./usr/share/lintian/overrides/nfpm
|
|
|
|
packager: deb
|
|
|
|
file_info:
|
|
|
|
mode: 0644
|
2021-07-10 18:24:31 +02:00
|
|
|
|
2022-02-03 03:31:23 +01:00
|
|
|
aurs:
|
|
|
|
- homepage: https://nfpm.goreleaser.com
|
|
|
|
description: nFPM is a simple, 0-dependencies, deb, rpm and apk packager.
|
|
|
|
maintainers:
|
|
|
|
- 'Fernandez Ludovic <lfernandez dot dev at gmail dot com>'
|
|
|
|
- 'Carlos Alexandro Becker <carlos at becker dot software>'
|
|
|
|
license: MIT
|
|
|
|
private_key: '{{ .Env.AUR_KEY }}'
|
|
|
|
git_url: 'ssh://aur@aur.archlinux.org/nfpm-bin.git'
|
|
|
|
package: |-
|
|
|
|
# bin
|
|
|
|
install -Dm755 "./nfpm" "${pkgdir}/usr/bin/nfpm"
|
|
|
|
# license
|
|
|
|
install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/nfpm/LICENSE"
|
|
|
|
# completions
|
|
|
|
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
|
|
|
|
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
|
|
|
|
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
|
|
|
|
install -Dm644 "./completions/nfpm.bash" "${pkgdir}/usr/share/bash-completion/completions/nfpm"
|
|
|
|
install -Dm644 "./completions/nfpm.zsh" "${pkgdir}/usr/share/zsh/site-functions/_nfpm"
|
|
|
|
install -Dm644 "./completions/nfpm.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/nfpm.fish"
|
|
|
|
# man pages
|
|
|
|
install -Dm644 "./manpages/nfpm.1.gz" "${pkgdir}/usr/share/man/man1/nfpm.1.gz"
|
|
|
|
|
2021-07-10 18:24:31 +02:00
|
|
|
furies:
|
|
|
|
- account: goreleaser
|
|
|
|
|
2021-12-22 21:31:27 +01:00
|
|
|
sboms:
|
|
|
|
- artifacts: archive
|
2021-10-13 03:05:25 +02:00
|
|
|
signs:
|
|
|
|
- cmd: cosign
|
2021-12-15 19:30:49 +01:00
|
|
|
env:
|
|
|
|
- COSIGN_EXPERIMENTAL=1
|
|
|
|
certificate: '${artifact}.pem'
|
2021-12-16 03:20:22 +01:00
|
|
|
output: true
|
|
|
|
artifacts: checksum
|
2021-12-15 19:30:49 +01:00
|
|
|
args:
|
|
|
|
- sign-blob
|
|
|
|
- '--output-certificate=${certificate}'
|
|
|
|
- '--output-signature=${signature}'
|
|
|
|
- '${artifact}'
|
2021-10-13 03:05:25 +02:00
|
|
|
docker_signs:
|
2021-12-15 19:30:49 +01:00
|
|
|
- cmd: cosign
|
|
|
|
env:
|
|
|
|
- COSIGN_EXPERIMENTAL=1
|
|
|
|
artifacts: manifests
|
2021-12-16 03:20:22 +01:00
|
|
|
output: true
|
2021-12-15 19:30:49 +01:00
|
|
|
args:
|
|
|
|
- 'sign'
|
|
|
|
- '${artifact}'
|
2021-10-13 03:05:25 +02:00
|
|
|
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
use: github
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|
2021-10-13 03:14:28 +02:00
|
|
|
- '^chore'
|
2021-10-13 03:05:25 +02:00
|
|
|
- Merge pull request
|
2021-11-29 14:37:19 +01:00
|
|
|
- Merge remote-tracking branch
|
2021-10-13 03:05:25 +02:00
|
|
|
- Merge branch
|
|
|
|
- go mod tidy
|
2021-11-29 14:37:19 +01:00
|
|
|
groups:
|
|
|
|
- title: 'New Features'
|
|
|
|
regexp: "^.*feat[(\\w)]*:+.*$"
|
|
|
|
order: 0
|
|
|
|
- title: 'Bug fixes'
|
|
|
|
regexp: "^.*fix[(\\w)]*:+.*$"
|
|
|
|
order: 10
|
|
|
|
- title: Other work
|
|
|
|
order: 999
|
2021-10-13 03:05:25 +02:00
|
|
|
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
|
|
|
|
release:
|
|
|
|
footer: |
|
2021-11-29 14:37:19 +01:00
|
|
|
**Full Changelog**: https://github.com/goreleaser/nfpm/compare/{{ .PreviousTag }}...{{ .Tag }}
|
|
|
|
|
2021-10-13 03:05:25 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- Check out [GoReleaser](https://goreleaser.com): it integrates nFPM to the release pipeline of your Go projects.
|
|
|
|
|
2021-11-29 14:37:19 +01:00
|
|
|
milestones:
|
|
|
|
- close: true
|
|
|
|
|
2021-07-10 18:24:31 +02:00
|
|
|
announce:
|
2021-10-13 03:05:25 +02:00
|
|
|
skip: "{{gt .Patch 0}}"
|
2021-07-10 18:24:31 +02:00
|
|
|
twitter:
|
|
|
|
enabled: true
|
2021-10-13 03:05:25 +02:00
|
|
|
message_template: "nFPM {{ .Tag }} was just released! See what's new: https://github.com/goreleaser/nfpm/releases/tag/{{ .Tag }}"
|
|
|
|
discord:
|
|
|
|
enabled: true
|
|
|
|
message_template: "nFPM {{ .Tag }} is out! See what's new: https://github.com/goreleaser/goreleaser/releases/tag/{{ .Tag }}"
|