Skip to content

hashicorp/actions-packaging-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

actions-packaging-linux Heimdall

For internal HashiCorp use only. The output of this action is specifically designed to satisfy the needs of our internal deployment system, and may not be useful to other organizations.

This is a GitHub Action wrapper around nFPM, used to produce DEBs and RPMs.

Inputs

Input Description Default
name Product name.
arch Build architecture.
version Product semver version.
maintainer Maintainer name.
vendor Default vendor. HashiCorp
description Product description.
homepage Product homepage.
license Product usage license.
binary Binary location to package.
file_permissions Umask applied to all files in the package; if unspecified, the file permissions are unmodified during packaging.
user_owner Name of user that should own all files in the package nFPM's default (root)
group_owner Name of group that should own all files in the package nFPM's default (root)
config_dir Directory of configs in desired filesystem structure.
deb_depends Comma separated list of deb dependencies.
rpm_depends Comma separated list of rpm dependencies.
preinstall Preinstall script location.
postinstall Postinstall script location.
preremove Preremove script location.
postremove Postremove script location.

Release Instructions

A new release has two parts: git tags, and a GitHub release. Look at the current tags to determine what the next version should be. In the instructions below, replace v1 with vN where N is the major version of the new release if it's not 1.

  1. git checkout main && git pull origin main
  2. git tag v<new-version-number> && git push origin v<new-version-number>
  3. Push the tag while you're on the main branch
  4. git tag -d v1 && git push origin :refs/tags/v1
  5. git tag v1 && git push origin v1