Skip to content

Plugin: packager-nfpm

Builds Linux packages (deb, rpm, apk) with nfpm package during the semrel release pipeline.

Terminal window
semrel plugin install @semrel/nfpm

semrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.

version: 1
plugins:
- uses: @semrel/nfpm
args:
config: packaging/nfpm.yaml
target: dist/packages
packagers: deb,rpm,apk
NameRequiredDefaultDescription
SEMREL_PLUGIN_CONFIGnonfpm.yamlPath to the nFPM config file.
SEMREL_PLUGIN_TARGETnodistOutput directory for generated packages.
SEMREL_PLUGIN_PACKAGERSnodeb,rpm,apkCSV list of package formats to build.
  • SEMREL_NEXT_VERSION
  • SEMREL_CURRENT_VERSION
  • SEMREL_TAG_NAME
  • SEMREL_DRY_RUN

For a 1.4.0 release, the plugin can build package files such as myapp_1.4.0_amd64.deb, myapp-1.4.0-1.x86_64.rpm, and myapp_1.4.0_amd64.apk.

  • nfpm must be installed and available on PATH.