prometheus-paperless-exporter/.goreleaser.yml
dependabot[bot] b742abfa2e Bump hansmi/ghactions-goreleaser-workflow from 0.2 to 0.3
Bumps [hansmi/ghactions-goreleaser-workflow](https://github.com/hansmi/ghactions-goreleaser-workflow) from 0.2 to 0.3.
- [Commits](https://github.com/hansmi/ghactions-goreleaser-workflow/compare/v0.2...v0.3)

---
updated-dependencies:
- dependency-name: hansmi/ghactions-goreleaser-workflow
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-09 22:23:48 +02:00

75 lines
2 KiB
YAML

# Configuration for GoReleaser
# https://goreleaser.com/
#
# Local test: contrib/build-all
#
version: 2
project_name: prometheus-paperless-exporter
builds:
- main: .
binary: prometheus-paperless-exporter
env:
- CGO_ENABLED=0
targets:
- go_first_class
flags:
- -trimpath
ldflags: |
-s -w
-X github.com/prometheus/common/version.Version={{.Version}}
-X github.com/prometheus/common/version.Revision={{.FullCommit}}
-X github.com/prometheus/common/version.Branch={{.Branch}}
-X github.com/prometheus/common/version.BuildDate={{.Date}}
nfpms:
- description: Prometheus metrics for Paperless-ngx
maintainer: M. Hanselmann
bindir: /usr/bin
license: BSD-3-Clause
formats:
- deb
- rpm
contents:
- src: ./README.md
dst: /usr/share/doc/prometheus-paperless-exporter/README.md
- src: ./LICENSE
dst: /usr/share/doc/prometheus-paperless-exporter/LICENSE
archives:
- format: tar.gz
wrap_in_directory: true
files:
- LICENSE
- README.md
dockers:
- ids:
- prometheus-paperless-exporter
use: buildx
dockerfile: contrib/Dockerfile.goreleaser
extra_files:
- LICENSE
- README.md
image_templates:
- ghcr.io/hansmi/prometheus-paperless-exporter:{{.Tag}}
- ghcr.io/hansmi/prometheus-paperless-exporter:v{{.Major}}
- ghcr.io/hansmi/prometheus-paperless-exporter:latest
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}}
release:
draft: true
prerelease: auto
snapshot:
name_template: '{{ incpatch .Version }}-snapshot{{ replace (replace .Date ":" "") "-" "" }}+g{{ .ShortCommit }}'
# vim: set sw=2 sts=2 et :