hashicorp/build-linux-packages
Packages binaries using nfpm.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Apr 21, 2026
- License
- MPL 2.0
Pinned Snippet
uses: hashicorp/actions-packaging-linux@006298649be64cee63e7f94a54dfcf3e14766bf6 # v1.11tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| name | Product name. | yes | "" |
| arch | Build architecture. | yes | "" |
| version | Product semver version. | yes | "" |
| maintainer | Maintainer name. | no | "" |
| vendor | Vendor name | no | HashiCorp |
| description | Product description. | no | "" |
| homepage | Product homepage. | no | "" |
| license | Product license. | no | "" |
| binary | Binary location to package. | no | "" |
| bin_path | Path to install the binary at | no | /usr/bin |
| file_permissions | File permissions applied to all files in the package; specify in yaml/octal format: `0o022`; if empty, permissions are unmodified. | no | "" |
| user_owner | The user name or ID that should own the files in the package; e.g.: root | no | "" |
| group_owner | The group name or ID that should own the files in the package; e.g.: root | no | "" |
| config_dir | Directory of configs in desired filesystem structure. | no | "" |
| deb_depends | Comma-separated list of deb dependencies. These prerequistes are mandatory at package install-time. | no | "" |
| deb_recommends | Comma-separated list of deb packages recommended to also be installed. These packages are optional at package install-time. | no | "" |
| rpm_depends | Comma-separated list of rpm dependencies. These prerequistes are mandatory at package install-time. | no | "" |
| rpm_recommends | Comma-separated list of rpm packages recommended to also be installed. These packages are optional at package install-time. | no | "" |
| preinstall | Preinstall script location. | no | "" |
| postinstall | Postinstall script location. | no | "" |
| preremove | Preremove script location. | no | "" |
| postremove | Postremove script location. | no | "" |
| nfpm_destination | Where to install the nFPM binary (default: $HOME/bin/nfpm) | — | $HOME/bin/nfpm |
| nfpm_template_destination | Where to install the nfpm_template binary (default: $HOME/bin/nfpm_template) | — | $HOME/bin/nfpm_template |
| nfpm_version | The version of nFPM to install (default: latest) | — | Latest |
| do_not_override_action_ref | Don't ever override this. It's a workaround for a runner bug with composite nested actions. See: https://github.com/actions/runner/issues/2473#issuecomment-1776051383 | — | ${{ github.action_ref }} |
Outputs
no outputs