1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-04 03:11:55 +02:00
Commit Graph

47 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
45b80dfa26
fix: pass tree state as ldflag (#3968)
needs #3967

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-02 01:04:48 -03:00
Carlos Alexandro Becker
43ae761179
feat: native upx support (#3965)
this adds a new root-level `upx` config, so users can pack their
binaries with upx :)

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-01 21:22:05 -03:00
Carlos Alexandro Becker
eb823dee14
feat: allow multiple scoops (#3963)
This brings the scoops feature a bit more closer to similar pipes, like
brew and krew.

- It now supports multiple scoops
- It improves some validations to prevent wrong manifests
- It uses extra.binaries instead of extra.builds, as brew does too
	- extra.builds is now unused, will be removed in a subsequent PR
- More tests were added as well

closes #3941

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-30 21:29:36 -03:00
Carlos Alexandro Becker
f3e1170a89
feat: log generated artifact sizes (#3954)
This adds a log with the size of the generated binaries/packages/etc in
the end of the build process, and also adds it to the artifacts.json

closes #3949

TODO:

- [x] tests
- [x] docs
- [ ] ??

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-23 20:27:16 -03:00
Carlos Alexandro Becker
9dcc63c60e
build: create scoop manifests inside a bucket folder
refs https://github.com/goreleaser/goreleaser/issues/3899

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-04-03 09:05:31 -03:00
Carlos A Becker
33e46b6e84
build: improve changelog config
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-10 10:27:51 -03:00
Carlos Alexandro Becker
9e21511300
feat: cosign update (#3821)
cosign v2 update!

- need to use `--yes` to auto-approve prompts

cc/ @cpanato anything else I'm missing?

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-03-02 15:11:43 -03:00
Carlos Alexandro Becker
fee166d02f
build: do not release for windows arm7 (#3735)
no one uses it anyway

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-09 08:57:38 -03:00
Carlos A Becker
15bc65618b
build: add another category to our changelog
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-02 21:07:38 -03:00
Carlos A Becker
2bfbab9885
build: disable goreleaser twitter announce
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-02 21:06:46 -03:00
Carlos A Becker
e27e3a6478
build: release for ppc64
closes #3703

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-25 14:23:44 -03:00
Carlos Alexandro Becker
a209757ad2
feat: better archives relative paths (#3656)
with this patch, a config like:

```yaml
archives:
  - format: tar.gz
    # this name template makes the OS and Arch compatible with the results of uname.
    name_template: >-
      {{ .ProjectName }}_
      {{- title .Os }}_
      {{- if eq .Arch "amd64" }}x86_64
      {{- else if eq .Arch "386" }}i386
      {{- else }}{{ .Arch }}{{ end }}
      {{- if .Arm }}v{{ .Arm }}{{ end }}
    rlcp: true
    files:
      - src: "build/**/*"
        dst: .

nfpms:
  - package_name: foo
    contents:
      - src: "build/**/*"
        dst: usr/share/foo
    formats:
      - apk

```

will eval this:

<img width="1384" alt="CleanShot 2022-12-21 at 22 21 00@2x"
src="https://user-images.githubusercontent.com/245435/209034244-7c31b5f7-cfcd-4825-bb2f-7dd463c5286a.png">

as much as I would like to make this the default, it would be a breaking
change, so we really can't do it.

If `dst` is empty, it'll have the same behavior as before (no rlcp), and
if `strip_parent` is set, it will also still have the same behavior.
Finally, if the format is binary, `rlcp` is ignored too (as it doesn't
make sense).

So, this only changes if:
- your format is not binary; and
- you have files with `src` and `dst` set

Then, goreleaser will warn you to set `rlcp: true`.

## todo

- [x] docs
- [x] more tests probably
- [x] any ideas for a better name for the new config option?

fixes #3655

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-27 17:42:55 -03:00
Carlos Alexandro Becker
937067697b
feat: set file info for binaries inside archives (#3618)
closes #3582

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-14 12:16:03 -03:00
Carlos A Becker
ddf7660b6d
fix: extra quotes on goreleaser archives 2022-12-10 12:46:23 -03:00
Carlos A Becker
522a60087a
chore: use digest when signing
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-28 22:42:02 -03:00
Carlos Alexandro Becker
e54656438b
feat: deprecate replacements (#3589)
The replacements thing was always a bit weird, especially on archives.

We can solve that with templates, so, removing I'm deprecating it.

Also did the same on other places that had it the same feature.

Closes #3588

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-25 15:26:14 -03:00
Carlos A Becker
8cc24a55a2
chore: fix mastodon announce url 2022-11-20 15:31:06 -03:00
Carlos Alexandro Becker
59138b43ce
chore: announce goreleaser releases to mastodon (#3569)
actually announce goreleaser releases to mastodon as well :)

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 21:42:43 -03:00
Steven Hartland
0ea4f1d5b7
fix(changelog): group regexps (#3527)
Fix the regular expressions used in changelog group processing to valid
golang (RE2) regexps. These previously used PCRE character class `\w`
which is not supported in RE2 which is what golang regexp uses.

Also document that format matches not just title as some may thing but
the format `<abbrev-commit> <title-commit>`.
2022-11-07 09:28:52 -03:00
Alex Logsdon
722463d129
docs: fix typo in .goreleaser.yaml (#3531)
URL in `.goreleaser.yaml` pointed to https://goreleser.com which doesn't
exit, presumably it was intended to point to https://goreleaser.com
2022-11-06 22:19:20 -03:00
Arsen6331
ad359a4712
feat: implement nfpm archlinux packages (#3470)
<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

Also, add tests and the respective documentation changes as well.

-->


<!-- If applied, this commit will... -->

This PR implements the Archlinux packages that were added in nfpm
v2.20.0, as well as tests and documentation for them.

<!-- Why is this change being made? -->

<!-- # Provide links to any relevant tickets, URLs or other resources
-->

goreleaser/nfpm#133
goreleaser/nfpm#543
Fixes #3469

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-11-02 15:30:06 -03:00
Carlos A Becker
1cf40901fc
chore: improve releaser footer 2022-10-23 15:19:31 -03:00
Carlos A Becker
86e292bbee
chore: fix changelog deps group
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-28 22:08:25 -03:00
Carlos Alexandro Becker
6606eec326
fix: yaml-lang-server modelines in init config (#3376)
- docs on how to specify the schema to the lang server
- add it automatically along with vim modelines to the init config
- added it to our config as well

this should prevent some "out of date" schema issues, as well as mixing
tabs with spaces and whatnot when an editorconfig plugin is not
installed.
2022-09-15 09:41:26 -03:00
Carlos Alexandro Becker
89978a2a5c
fix: fish completions path on nfpm (#3375)
https://fishshell.com/docs/current/completions.html#where-to-put-completions

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-15 01:29:47 -03:00
Carlos Alexandro Becker
3f60327964
feat: nfpm changelog support (#3309)
closes #3259

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-16 02:05:46 -03:00
Carlos Alexandro Becker
b3fcc54a32
feat: changelog group improvements (#3203)
This changes the changelog grouping feature a bit: it evaluates the
groups in the order they are declared in the config file, but renders
them following their `order` attribute.

This allows to have better filters, for instance, you might want to have
dependabot commits in another section, which does not need a high
priority in the changelog output, but does when evaluating, as it might
share the words with other groups: in goreleaser's case, the `feat`
prefix.

Giving that Go's regex seems to don't allow negative look-aheads (which
would help in this particular case), this seems like a good quality of
life improvement.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-06-26 22:00:23 -03:00
Carlos A Becker
e8307e8834
chore: announce patches
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-05-20 11:44:16 -03:00
Carlos A Becker
92cbd07f5b
chore: improve changelog
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-05-11 10:16:11 -03:00
Carlos A Becker
a6329f683b
chore: doc updates session in the release notes
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-05-07 00:17:58 -03:00
Carlos Alexandro Becker
3df29b67ab
feat: deprecate gofish (#2999)
* feat: deprecate gofish

gofish was deprecated by its authors, this deprecates it here too

refs https://github.com/goreleaser/goreleaser/discussions/2998

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

* fix: do not publish rig anymore

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

* docs: remove install

* chore: deprecate

* fix(gofish): fix broke logs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-02 10:41:05 -03:00
Carlos Alexandro Becker
02a94ce23e
feat: lintian overrides (#2892)
* feat: lintian overrides

allow to more easily set lintian overrides

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

* fix: lintian

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-09 11:40:51 -03:00
Carlos Alexandro Becker
750d520638
feat: make goreleaser.deb pass lintian validations (#2883)
* feat: make pkg pass lintian validations

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

* fix: lintian issues

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

* fix: bash completions

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-05 18:02:06 -03:00
Engin Diri
2141432205
feat: add additional properties for ArtifactHub (#2858) 2022-01-30 14:50:07 -03:00
Engin Diri
dde453cf9c
feat: add goreleaser image to ArtifactHub (#2855)
* feat: add goreleaser image to ArtifactHub

* feat: add goreleaser image to ArtifactHub
2022-01-30 11:18:56 -03:00
Carlos Alexandro Becker
b02bec962e
feat: arch user repository integration (#2838)
* feat: aur PKGBUILD integration

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

* feat: guess install, improve formatting

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

* fix: more deterministic

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

* feat: binary releases, push, more tests

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

* feat: accept key as text

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

* feat: improvements

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

* feat: srcinfo

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

* fix: compile

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

* fix: everything

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

* fix: lint

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

* feat: renames, docs, etc

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

* docs: link to docs

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

* fix: go mod tidy, title

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

* fix: srcinfo tmpl

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

* fix: missing close quote

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

* fix: templates

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

* fix: always defaults conflicts and provides

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

* fix: ssh command

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

* fix: maintainers can be a list

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

* fix: ensure -bin suffix, more tests and docs

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

* fix: this will never happen

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

* fix: whitespaces

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

* fix: goreleaser config

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-20 14:59:39 -03:00
Carlos A Becker
2c6b51cc65
fix: include manpages on the tar.gz
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-19 10:03:46 -03:00
Carlos Alexandro Becker
ae583453a7
feat: manpages (#2837)
* feat: manpages

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

* fix: section

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

* feat: use mango instead

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

* fix: improvements

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

* fix: unused

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-18 10:17:52 -03:00
Carlos A Becker
30e536ea90
chore: remove unneeded --oidc-issuer flag
Co-authored-by: Batuhan Apaydın <developerguyn@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-22 17:28:16 -03:00
Carlos A Becker
8e3fa2cb36
fix(ci): dont need to sign sboms as we already sign the checksums
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-22 14:36:51 -03:00
Carlos A Becker
eb8d66f6fd
fix: missing checksum signing
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-22 10:49:03 -03:00
Carlos Alexandro Becker
fec83a74aa
feat: do not release goreleaser for arm6 (#2779)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 14:21:15 -03:00
Carlos Alexandro Becker
505888f41b
feat: keyless signing (#2716)
* feat: keyless signing

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

* fix: perms

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

* fix: rm old pubkey

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

* docs: missing experimental flag

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

* docs: true keyless

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

* docs: improve install

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

* fix: simplifying

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

* docs: improvements

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

* docs: improvements

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

* docs: trying to improve docs

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

* fix: config

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

* fix: package write

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-16 13:43:11 -03:00
Alex Goodman
bfdec808ab
feat: add sbom generation pipe (#2648)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-12-12 00:21:51 -03:00
Carlos Alexandro Becker
e8c8a2832f
feat: improve universal binaries on krew/brew/gofish (#2747)
* feat: improve universal binaries on krew/brew/gofish

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

* test: OnlyReplacingUnibins

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

* fix: archive

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

* fix: do not replace single-arch

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-07 21:53:39 -03:00
Carlos A Becker
f659701fef
chore(ci): fix compare url
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-25 22:37:48 -03:00
Engin Diri
ff4e07a91c
chore: Rename yml to yaml (#2698) 2021-11-24 20:34:56 -03:00