Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashicorp/actions-packaging-linux
Public GitHub Actions
https://github.com/hashicorp/actions-packaging-linux
crt
Last synced: 3 months ago
JSON representation
Public GitHub Actions
- Host: GitHub
- URL: https://github.com/hashicorp/actions-packaging-linux
- Owner: hashicorp
- License: mpl-2.0
- Created: 2021-08-26T15:09:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T16:28:29.000Z (4 months ago)
- Last Synced: 2024-09-28T12:41:05.754Z (3 months ago)
- Topics: crt
- Language: Go
- Homepage:
- Size: 52.7 KB
- Stars: 3
- Watchers: 9
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# actions-packaging-linux [![Heimdall](https://heimdall.hashicorp.services/api/v1/assets/actions-packaging-linux/badge.svg?key=a504c3bd609f201a9718f56fc5e56613de4d6a052794adf9b06b2a529ddd741a)](https://heimdall.hashicorp.services/site/assets/actions-packaging-linux)
_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`
1. `git tag v && git push origin v`
1. Push the tag while you're on the `main` branch
1. `git tag -d v1 && git push origin :refs/tags/v1`
1. `git tag v1 && git push origin v1`