hashicorp/build-linux-packages

Packages binaries using nfpm.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 21, 2026
License
MPL 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: hashicorp/actions-packaging-linux@006298649be64cee63e7f94a54dfcf3e14766bf6 # v1.11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
nameProduct name.yes""
archBuild architecture.yes""
versionProduct semver version.yes""
maintainerMaintainer name.no""
vendorVendor namenoHashiCorp
descriptionProduct description.no""
homepageProduct homepage.no""
licenseProduct license.no""
binaryBinary location to package.no""
bin_pathPath to install the binary atno/usr/bin
file_permissionsFile permissions applied to all files in the package; specify in yaml/octal format: `0o022`; if empty, permissions are unmodified.no""
user_ownerThe user name or ID that should own the files in the package; e.g.: rootno""
group_ownerThe group name or ID that should own the files in the package; e.g.: rootno""
config_dirDirectory of configs in desired filesystem structure.no""
deb_dependsComma-separated list of deb dependencies. These prerequistes are mandatory at package install-time.no""
deb_recommendsComma-separated list of deb packages recommended to also be installed. These packages are optional at package install-time.no""
rpm_dependsComma-separated list of rpm dependencies. These prerequistes are mandatory at package install-time.no""
rpm_recommendsComma-separated list of rpm packages recommended to also be installed. These packages are optional at package install-time.no""
preinstallPreinstall script location.no""
postinstallPostinstall script location.no""
preremovePreremove script location.no""
postremovePostremove script location.no""
nfpm_destinationWhere to install the nFPM binary (default: $HOME/bin/nfpm)$HOME/bin/nfpm
nfpm_template_destinationWhere to install the nfpm_template binary (default: $HOME/bin/nfpm_template)$HOME/bin/nfpm_template
nfpm_versionThe version of nFPM to install (default: latest)Latest
do_not_override_action_refDon'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 }}

no outputs