1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-27 13:06:12 +02:00
Commit Graph

70 Commits

Author SHA1 Message Date
Carlos A Becker ff6dfb9df4
docs: update
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-15 15:36:38 -03:00
Carlos Alexandro Becker 3f4fd21b66
chore(ci): keyless signing (#413)
* chore(ci): keyless signing

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: fix

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: ci

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: vercel build script

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improve wording

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improve wording

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improve wording

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore(Taskfile): Remove -s flag for gofumpt (#421)

* chore(deps): bump sigstore/cosign-installer from 1.3.1 to 1.4.1 (#425)

Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 1.3.1 to 1.4.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v1.3.1...v1.4.1)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(deps): bump github.com/spf13/cobra from 1.2.1 to 1.3.0 (#426)

Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.2.1 to 1.3.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: fix links

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: update help after cobra upgrade

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: name

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

Co-authored-by: 4censord <49623362+4censord@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-15 15:30:49 -03:00
Carlos A Becker c33782561a
docs: update help after cobra upgrade
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-15 15:20:55 -03:00
CrazyMax 9570f5234f
feat: custom packager configuration for rpm pkg (#409)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-30 15:56:10 -03:00
CrazyMax aee2dc4dd5
feat: expand-env support for vendor field (#406)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-11-19 14:08:38 -03:00
Carlos A Becker a8120c25ae
docs: remove empty_folders from docs 2021-11-14 11:21:33 -03:00
Carlos A Becker ed3c0433db
docs: typo 2021-11-13 23:21:22 -03:00
Carlos A Becker 074c2de8e7
docs: fix url 2021-11-12 17:21:09 -03:00
Carlos Alexandro Becker eaf42de445
feat: rename branch to main (#400) 2021-11-12 17:18:34 -03:00
Erik G 4f5362102c
feat: directory content type with custom attributes (#390)
* Deprecate EmptyFolders and introduce dir contents.

* Handle explicit dirs with attributes correctly for Debs.

* Handle explicit dirs with attributes correctly for Apks.

* Sort contents by fields that are most relevant for the package.

* Make deprecation warning for empty_folders consistent.

* Name RPM directory tag more consistently.

* Fix deprecation notice in docs.

* Fix directory normalization for Debs and Apks.

* Revert Apk builder size in tests.

* Fix file sorting.

* Fix deprecated EmptyFolders handling in info.Validate.

* Fix Apk builder size in tests.

* Only stat content source when necessary.

* Allow src on dir content.

* Small addition to file_info docs.

* Fix typo in comments.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Remove content type fallthrough case.

* Fix typo in apk tests.

* Fix more typos.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-11-11 22:58:59 -03:00
Roman Dodin 72daac227f
docs: fix docker exec example (#391) 2021-11-06 14:08:44 -03:00
Erik G 563d480677
fix: use full mode instead of permissions in tarball (#395) 2021-11-06 14:07:18 -03:00
Erik G e5c7e17300
feat: allow platform specific arch overrides. (#396)
* Feat: Allow platform specific arch overrides.

* Fix typos and make arch handling more consistent.
2021-11-06 14:04:50 -03:00
Carlos A Becker 685352fcfb
docs: improve search 2021-11-01 09:03:27 -03:00
Carlos A Becker e0d55fba23
docs: install script method removed
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-13 21:23:36 -03:00
Carlos A Becker d04964eae1
chore(ci): improve/fix release config
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 22:08:25 -03:00
Carlos A Becker 556b002d40
docs: arch accepts env
closes #362

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 21:05:28 -03:00
Carlos A Becker 4cdfb6b273
docs: refresh schema
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 16:43:28 -03:00
Drew Stinnett 56c46c6d50
feat: enforce packager defaults (#372)
* feat: apply defaults to required deb values

* feat: Adding default info to config documentation

* fix: cleanup comments

* refactor: implementing refactor from PR discussion

* fix: making deprecation warning more clear
2021-10-11 09:50:43 -03:00
Carlos Alexandro Becker d43e819f62
chore(ci): use taskfile, improve configs (#376)
* chore(ci): use taskfile, improve configs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: gofish

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: gofish

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: goreleaser cofnig

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-10 14:44:08 -03:00
Erik G 2a331c5c7f
feat: compression option with xz support for deb (#363) 2021-09-04 10:24:52 -03:00
Carlos Alexandro Becker 814849d76d
docs: update repo url
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-29 10:39:03 -03:00
Carlos Alexandro Becker 36a847b2f8
fix: consistency
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-12 14:51:43 -03:00
Carlos Alexandro Becker e216fd8243
docs: indent levels
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-12 14:50:43 -03:00
Carlos Alexandro Becker 1a8aebfb2f
docs: improve install
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-12 14:49:15 -03:00
Carlos Alexandro Becker 5c895f6e80
feat: jsonschema (#350)
* feat: jsonschema

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: gitattr

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: schema

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: schema

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* docs: improvements

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-07 10:20:34 -07:00
Carlos A Becker a582b89bec
chore(ci): use fork to gen cmd docs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-07 01:48:17 +00:00
Carlos A Becker 330cc48893
docs: using cobra fork
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-07 01:38:52 +00:00
Carlos A Becker 8a05df1908
feat: updates after cobra update
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-07 01:06:45 +00:00
Carlos A Becker a5f74353cf
docs: fix wording, links
closes #346

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 01:01:53 +00:00
Carlos A Becker d0efbe45f4
docs: improve colors and analytics
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 00:45:05 +00:00
Carlos A Becker decb73f3a7
fix(ci): htmltest
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 00:44:22 +00:00
Carlos Alexandro Becker d10300d9e4
docs: fix go install
refs #343
2021-06-09 15:19:14 -03:00
Jesse Donat d92f4b1345
docs: fix `go install` instructions (#340) 2021-06-02 22:13:52 -03:00
Carlos Alexandro Becker c39b8ba060
feat: overhaul cmd and release process (#325) 2021-04-23 09:29:19 -03:00
Dj Gilcrease fe1413c7af
feat: add version_schema config option to allow controlling how the version string is parsed. (#324)
closes #283
2021-04-23 00:36:16 +00:00
Cristian Ciutea 39f5bf392d
feat: add %pretrans %posttrans scriptlets (#322)
* create branch

* added rpm pretrans and posttrans scriptlets

* update rpmpack dependency

* updated acceptance testdata

* docs: updated documentation to include %pretrans and %posttrans rpm scripts

* cleanup

* docs: cleanup
2021-04-22 18:48:06 +00:00
Dj Gilcrease 501e743010
feat: add support for alpine pre and post upgrade scripts and add an upgrade test (#323) 2021-04-20 14:02:37 -07:00
Joakim Karlsson 7701bb950c
feat: Support for deb's config maintenance script (#317)
* feat: Support for deb's config maintenance script

With debconf, the config script is responsible for asking any questions
necessary to configure a package [1]. Without this, we're forced to ask
questions in postinst, which is against best practices [2].

This commit adds the possibility to include a config script when using
debconf like so:

```yaml
deb:
  scripts:
    templates: ./my/templates
    config: ./my/config
```

[1] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html#THE_CONFIG_SCRIPT
[2] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html#THE_POSTINST_SCRIPT

* docs: Add info about deb config maintainer script
2021-04-14 14:43:42 +00:00
Dj Gilcrease 876fed4639
docs: add a tip and hints page (#318) 2021-04-12 19:04:52 -03:00
Dj Gilcrease a61de3bb05
fix: switch to use gopenpgp (#315)
With Googles anouncement that x/crypto/openpgp is depreciated https://github.com/golang/go/issues/44226 we have decided to switch to github.com/ProtonMail/gopenpgp & github.com/ProtonMail/go-crypto/openpgp
2021-04-08 11:15:11 -07:00
Carlos Alexandro Becker 0246c68390
fix(ci): go mod tidy (#308)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-02 21:29:17 -03:00
Erik G de0df62c36
fix: Prevent destination collisions (#290)
* fix: Return an error when a contents have colliding destinations.

* doc: Improve symlink documentation.
2021-01-30 15:47:01 +00:00
Dj Gilcrease a8e33991fc
fix: allow using an env var in the signature.key_file field (#282) 2021-01-14 10:32:10 -08:00
Carlos Alexandro Becker 17af87eda2
fix: race condition and remove unused code (#273)
* refactor: small code improvements

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* refactor: small code improvements

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: race condition

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: race

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* test: fix invalid file

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: fix synlinks/indent

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-12-30 19:15:16 +00:00
Carlos Alexandro Becker 86c1007d31 docs: fix twitter link
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-29 12:06:39 -03:00
Carlos Alexandro Becker 62357a65e2
feat: version as v2 (#268)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-23 13:25:57 +00:00
Dj Gilcrease c4ae30d749
feat: try to clean up and simplify the file adding interface (#255)
* feat: cleanup and simplify the file adding interface

* docs: update the configuration docs to focus on the new contents format for specifying files

* docs: correct spelling

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-12-15 13:47:00 -03:00
Erik G 7839385b21
feat: add an option to disable globbing (#248)
* feat: Add option to disable globbing.

* test: Fix failing tests.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-11-10 09:37:29 -03:00
wwade 8c19c6a283
feat: Support RPM ghost files (#245)
From the [Maximum RPM] guide:

    The %ghost Directive

    As we mentioned in the Section called The %files List, if a file
    is specified in the %files list, that file will automatically be
    included in the package. There are times when a file should be
    owned by the package but not installed - log files and state files
    are good examples of cases you might desire this to happen.

    The way to achieve this, is to use the %ghost directive. By adding
    this directive to the line containing a file, RPM will know about
    the ghosted file, but will not add it to the package.

Ghost files are specified using `Type: rpmpack.GhostFile` when
constructing the output package.

The test ensures that we have:
 - The target file present in the RPM.
 - The specified mode attributes (although not really important,
 either).
 - An empty file *[1]* in the RPM for the named ghost,
see [google/rpmpack #51].

*[1] Instead of an empty file, no file should be created, but this is
not possible until the upstream issue is resolved.*

[Maximum RPM]:
http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html
[google/rpmpack #51]: https://github.com/google/rpmpack/issues/51

Co-authored-by: wwade <wwade@users.noreply.github.com>
2020-11-08 17:10:27 -03:00