https://github.com/jiro4989/build-rpm-action
build-rpm-action builds a simple rpm package.
https://github.com/jiro4989/build-rpm-action
centos docker github-actions nim rpm
Last synced: about 1 month ago
JSON representation
build-rpm-action builds a simple rpm package.
- Host: GitHub
- URL: https://github.com/jiro4989/build-rpm-action
- Owner: jiro4989
- License: mit
- Created: 2020-07-11T02:25:44.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T22:30:09.000Z (10 months ago)
- Last Synced: 2025-03-23T18:48:23.118Z (about 2 months ago)
- Topics: centos, docker, github-actions, nim, rpm
- Language: Nim
- Homepage:
- Size: 42 KB
- Stars: 10
- Watchers: 3
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# build-rpm-action
[](https://github.com/jiro4989/build-rpm-action/actions?query=workflow%3ATest)
[](https://github.com/jiro4989/build-rpm-action/actions?query=workflow%3Areviewdog)
[](https://github.com/jiro4989/build-rpm-action/actions?query=workflow%3Arelease)
[](https://github.com/jiro4989/build-rpm-action/releases)
[](https://github.com/haya14busa/action-bumpr)`build-rpm-action` builds a simple rpm package.
See [build-deb-action](https://github.com/jiro4989/build-deb-action) if you want to create `debian` package.
## Input
```yaml
inputs:
summary:
description: 'Package summary.'
required: true
package:
description: 'Package name of debian package.'
required: true
package_root:
description: 'Directory of release files.'
required: true
maintainer:
description: 'Package maintainer name.'
required: true
vendor:
description: 'Package vendor.'
default: ''
version:
description: 'Package version.'
required: true
arch:
description: 'Package architecture.'
default: 'x86_64'
desc:
description: 'Package description.'
default: ''
license:
description: 'Package LICENSE.'
post:
description: 'Package post.'
default: ''
build_requires:
description: 'Package build requires.'
# NOTE: for nim parseops package bugs
default: '-'
requires:
description: 'Package requires.'
# NOTE: for nim parseops package bugs
default: '-'
```## Output
```yaml
outputs:
file_name:
description: 'File name of resulting .rpm file. This does not contain a debuginfo file.'
debuginfo_file_name:
description: 'File name of resulting .rpm debuginfo file.'
```## Usage
```yaml
name: buildon:
push:
tags:
- 'v*.*.*'jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2- name: create sample script
run: |
mkdir -p .rpmpkg/usr/bin
mkdir -p .rpmpkg/usr/lib/testbin
echo -e "echo hello" > .rpmpkg/usr/bin/testbin
echo -e "echo hello2" > .rpmpkg/usr/bin/testbin2
echo -e "a=1" > .rpmpkg/usr/lib/testbin/testbin.conf
chmod +x .rpmpkg/usr/bin/*- uses: jiro4989/build-rpm-action@v2
with:
summary: 'testbin is a test script'
package: testbin
package_root: .rpmpkg
maintainer: jiro4989
version: ${{ github.ref }} # refs/tags/v*.*.*
arch: 'x86_64'
desc: 'test package'
```## Example projects
*
## Development
### Flow
1. Create a new branch
1. Commit
1. Merge the branch into `develop` branch
1. Push `develop` branch
1. Check passing all tests
1. Create a new pull request
1. Merge the branch into `master` branchThis actions is using a DockerHub image. We must push `docker-v0.0.0` git-tag
to create a new tagged docker image. Published a new tagged docker image, and
change tag of action.yml into `develop` branch, and check passing all tests,
and merge into `master`.### Release
#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)
You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch).
Pushing tag manually by yourself also work.#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver)
This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3.
ref:### Lint - reviewdog integration
This reviewdog action template itself is integrated with reviewdog to run lints
which is useful for Docker container based actions.
Supported linters:
* [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck)
* [reviewdog/action-hadolint](https://github.com/reviewdog/action-hadolint)
* [reviewdog/action-misspell](https://github.com/reviewdog/action-misspell)