This repository has been archived on 2026-11-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
node-lookup/.goreleaser.yaml
T
unkin-agent f6f4b6f958
ci/woodpecker/pr/pre-commit Pipeline was successful
ci / release-snapshot (pull_request) Failing after 11m0s
ci / go (pull_request) Failing after 11m1s
ci / actions (pull_request) Failing after 11m8s
ci / ci (pull_request) Failing after 11m10s
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci / goreleaser-check (pull_request) Has been cancelled
Restore replaces on the node-lookup RPM
2026-11-26 00:09:46 +11:00

101 lines
2.4 KiB
YAML

version: 2
project_name: node-lookup
before:
hooks:
- scripts/completions.sh
# Each tool has a linux/amd64 build (the only one packaged into the RPM) and an
# "-other" build for the remaining platforms.
builds:
- &build
id: node-lookup
main: .
binary: node-lookup
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{ .Tag }}
goos: [linux]
goarch: [amd64]
- &other
<<: *build
id: node-lookup-other
goos: [linux, darwin]
goarch: [amd64, arm64]
ignore:
- goos: linux
goarch: amd64
- <<: *build
id: pburl
main: ./cmd/pburl
binary: pburl
- <<: *other
id: pburl-other
main: ./cmd/pburl
binary: pburl
- <<: *build
id: pblastreport
main: ./cmd/pblastreport
binary: pblastreport
- <<: *other
id: pblastreport-other
main: ./cmd/pblastreport
binary: pblastreport
archives:
- formats: [binary]
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}"
nfpms:
- package_name: node-lookup
ids: [node-lookup, pburl, pblastreport]
formats: [rpm]
file_name_template: "{{ .ConventionalFileName }}"
release: "1"
section: default
maintainer: Ben Vincent <12552114+neoloc@users.noreply.github.com>
homepage: https://github.com/IUCLabs/node-lookup
license: MIT
description: "CLI tools for PuppetDB: node-lookup (fact lookup/filtering) plus pburl and pblastreport (Puppetboard URLs and last-report times)"
bindir: /usr/bin
replaces: [node-lookup]
provides: [node-lookup]
contents:
- src: completions/bash/*
dst: /usr/share/bash-completion/completions/
file_info:
mode: 0644
- src: completions/zsh/*
dst: /usr/share/zsh/site-functions/
file_info:
mode: 0644
- src: completions/fish/*
dst: /usr/share/fish/vendor_completions.d/
file_info:
mode: 0644
- src: packaging/config.example.yaml
dst: /usr/share/doc/node-lookup/config.example.yaml
type: doc
file_info:
mode: 0644
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
cmd: scripts/sign.sh
args: ["${artifact}", "${signature}"]
release:
use_existing_draft: true
mode: keep-existing
changelog:
disable: true