Skip to content

Commit

Permalink
Getting to a stable state, cleanup commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Jan 24, 2020
1 parent deff62e commit 2d46926
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 28 deletions.
9 changes: 0 additions & 9 deletions Dockerfile

This file was deleted.

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
# RPMbuild action

A GitHub action to build an RPM with just a .spec file and a few parameters.
A GitHub action to build an RPM.

## Requirements

This action expects the following structure:

```
.
├── SPECS/my.spec
└── SOURCES/my-1.0.0.tar.gz
├── README.md
├── SOURCES
│   └── my-1.0.0.tar.gz
└── SPECS
└── my.spec
```

## Inputs

### `specfile`

The RPM spec file.

## Example usage

`.github/workflows/rpmbuild.yml`:

```yaml
---
name: Build RPM

on:
- push

Expand All @@ -32,6 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: rpmbuild
uses: robertdebock/[email protected]
```
12 changes: 2 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
name: Build an RPM
description: Build an RPM with just a .spec file and a few parameters.
description: Build an RPM.
author: Robert de Bock <[email protected]>

inputs:
specfile:
description: The name (including local path) of the specfile..
required: true

runs:
using: docker
image: Dockerfile
# image: 'docker://robertdebock/github-action-rpmbuild'
env:
specfile: ${{ inputs.specfile }}
image: 'docker://robertdebock/github-action-rpmbuild'

branding:
icon: box
Expand Down

0 comments on commit 2d46926

Please sign in to comment.