1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-13 07:26:03 +02:00

docs: readme

This commit is contained in:
Carlos Alexandro Becker 2018-06-15 16:35:26 -03:00
parent 68fd410f83
commit fd58e75308
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -47,6 +47,18 @@ NFPM will guess which packager to use based on the target file extension.
And that's it!
## Usage as a docker image
You can run it with docker as well:
```sh
docker run --rm \
-v $PWD:/tmp/pkg \
goreleaser/nfpm pkg --config /tmp/pkg/foo.yml --target /tmp/pkg/foo.rpm
```
That's it!
## Usage as lib
You can look at the code of nfpm itself to see how to use it as a library, or, take