aceberg/WatchYourPorts

View on GitHub
.goreleaser.yaml

Summary

Maintainability
Test Coverage
project_name: WatchYourPorts
builds:
  - main: ./cmd/WatchYourPorts/
    binary: WatchYourPorts
    id: default
    env: [CGO_ENABLED=0]
    goos:
      - linux
      - windows
      - darwin
    goarch:
      - 386
      - amd64
      - arm
      - arm64
    goarm:
      - "5"
      - "6"
      - "7"
    ignore:
      - goos: darwin
        goarch: 386
      - goos: darwin
        goarch: arm
      - goos: windows
        goarch: 386
      - goos: windows
        goarch: arm

nfpms:
  - maintainer: aceberg <aceberg_a@proton.me>
    description: Open ports monitor. Exports data to InfluxDB2/Grafana  
    homepage: https://github.com/aceberg/WatchYourPorts
    license: MIT
    section: utils
    formats:
    - deb
    - rpm
    - apk
    - termux.deb
    contents:
    - src: ./configs/WatchYourPorts.service
      dst: /lib/systemd/system/WatchYourPorts.service
    - src: ./configs/WatchYourPorts@.service
      dst: /lib/systemd/system/WatchYourPorts@.service
    scripts:
      postinstall: ./configs/postinstall.sh

archives:
  - files:
    - LICENSE
    - README.md
    - CHANGELOG.md
    - src: ./configs/WatchYourPorts.service
      dst: WatchYourPorts.service
    - src: ./configs/WatchYourPorts@.service
      dst: WatchYourPorts@.service
    - src: ./configs/install.sh
      dst: install.sh
    wrap_in_directory: true
    format_overrides:
    - goos: windows
      format: zip

checksum:
  name_template: "checksums.txt"