Plugin: packager-nfpm
Builds Linux packages (deb, rpm, apk) with nfpm package during the semrel release pipeline.
Installation
Section titled “Installation”semrel plugin install @semrel/nfpmsemrel plugin install downloads the binary to .semrel/plugins/ and updates .semrel.lock. Commit .semrel.lock to pin the version for your team.
Configuration
Section titled “Configuration”version: 1plugins: - uses: @semrel/nfpm args: config: packaging/nfpm.yaml target: dist/packages packagers: deb,rpm,apkEnvironment Variables
Section titled “Environment Variables”| Name | Required | Default | Description |
|---|---|---|---|
SEMREL_PLUGIN_CONFIG | no | nfpm.yaml | Path to the nFPM config file. |
SEMREL_PLUGIN_TARGET | no | dist | Output directory for generated packages. |
SEMREL_PLUGIN_PACKAGERS | no | deb,rpm,apk | CSV list of package formats to build. |
Release Context Variables
Section titled “Release Context Variables”SEMREL_NEXT_VERSIONSEMREL_CURRENT_VERSIONSEMREL_TAG_NAMESEMREL_DRY_RUN
Behavior
Section titled “Behavior”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.
Requirements
Section titled “Requirements”nfpmmust be installed and available onPATH.