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