Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Add deb packaging with nfpm
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksgt committed Sep 7, 2018
1 parent d687d4c commit c3e030e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ var/
*.egg-info/
.installed.cfg
*.egg
*.deb

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ Running the postrun script verbose:

The script writes all messages to stdout and into a logfile */var/log/postrun.log*.

# Package

Build a (Debian) package for this executable by using [nfpm](https://github.com/goreleaser/nfpm):

```
nfpm pkg --target postrun.deb
```

# Testing and Development

Installing requirements:
Expand Down
18 changes: 18 additions & 0 deletions nfpm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# nfpm config file
name: "postrun"
arch: "all"
platform: "linux"
version: "0.0.1"
section: "default"
priority: "extra"
depends:
- python3
- python3-yaml
maintainer: "Vision-IT <vision-it@iis.fraunhofer.de>"
description: |
Deploys Puppet modules from modules.yaml
homepage: "https://github.com/vision-it/postrun"
license: "MIT"
bindir: "/usr/bin"
files:
./postrun.py: "/usr/bin/postrun"

0 comments on commit c3e030e

Please sign in to comment.