name: woodpecker-server
arch: amd64
platform: linux
version: ${VERSION_NUMBER}
description: Woodpecker Server
homepage: https://woodpecker-ci.org/
license: Apache 2.0
maintainer: Woodpecker Authors <maintainer@woodpecker-ci.org>
section: daemon/system
scripts:
  preinstall: ./nfpm/woodpecker-system-user.preinstall.sh
contents:
  - src: ./dist/server/linux_amd64/woodpecker-server
    dst: /usr/local/bin/woodpecker-server
  - src: ./nfpm/woodpecker-server.service
    dst: /usr/local/lib/systemd/system/woodpecker-server.service
  - src: ./nfpm/woodpecker-server.env.example
    dst: /etc/woodpecker/woodpecker-server.env.example
  - dst: /var/lib/woodpecker/
    type: dir
    file_info:
      owner: woodpecker
      group: woodpecker
      mode: 0750
