1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
Commit Graph

930 Commits

Author SHA1 Message Date
Alex Goodman
c8450633e5
fix: dedupliate cataloging binary artifacts (#2839) 2022-02-25 11:28:09 -03:00
Carlos Alexandro Becker
1bc01df5b9
fiX: improve aur key handling (#2935)
* fiX: improve aur key handling

make sure it has the right permissions and improve error messages

refs https://github.com/goreleaser/goreleaser-action/issues/326

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

* fix: improve error msgs, make sure file is closed

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-25 08:43:08 -03:00
Carlos Alexandro Becker
f640deb104
fix: trim spaces from aur private key (#2930)
I had this issue on a repo, and it seems at least one more person had it too: ssh/git complaining that the key is invalid.

My guess is that gh secret set from a file is now appending a new line - as it worked with the exact same key before, for me at least.

anyway, if thats it, this pr should fix it.

closes https://github.com/goreleaser/goreleaser-action/issues/326

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:58:25 -03:00
Carlos Alexandro Becker
d295d0bdff
feat: annotated tag body (#2923)
* feat: annotated tag body

this adds another template variable, `TagBody`, with the body of the annotated tag/commit message only.

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

* refactor: tag contents

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:57:51 -03:00
Carlos Alexandro Becker
f0af44ccbe
feat: add filter and reverseFilter template functions (#2924)
* feat: add grep and grep -v template functions

this adds `grep` and `reverseGrep` template functions, which should help dealing with text.

refs #2920

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

* refactor: rename funcs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:57:43 -03:00
Carlos Alexandro Becker
d07a5a8541
feat: change default nfpm bindir (#2910)
/usr/local/bin is intended for binaries compiled locally, which is never
the case for goreleaser.

this changes the default to /usr/bin instead.

closes #2909

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-14 21:54:04 -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
c457d8fff7
feat: allow to use .Path and .Name on universal binary post hooks (#2891)
* feat: allow to use .Path and .Name on universal binary post hooks

This allows the usage of `{{ .Path }}` and `{{ .Name }}` on post
templates.

Closes #2890

* docs: improve docs

* test: add more tests
2022-02-08 11:44:47 -03:00
Carlos Alexandro Becker
5f30f3606a
fix: make --release-notes flags more deterministic (#2888)
* fix: make --release-notes flags more deterministic

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

* chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-06 22:09:46 -03:00
Carlos Alexandro Becker
456f8aa2b1
feat: warn if loaded changelog is whitespace-only (#2885)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-06 14:24:47 -03:00
Carlos A Becker
e3997f8802
feat: update go-github from v41 to v42
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-05 18:01:26 -03:00
Carlos A Becker
9df62d87ec
fix: build log print relative path instead of abs
all other logs print relative paths, only the build logs are printing the abs path.

this makes things more even.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-05 17:44:07 -03:00
Carlos A Becker
efdc4d0f48
test: fixed hooks tests
refs #2875
refs f585f3be69

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-05 16:28:17 -03:00
Carlos A Becker
f585f3be69
feat: allow to output on hooks
refs #2875
2022-02-05 16:00:49 -03:00
Carlos Alexandro Becker
17aba5ce76
fix: aur error messages (#2880)
* fix: aur error messages

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

* fix: more renames

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-04 14:45:02 -03:00
Carlos Alexandro Becker
120780605b
fix: nfpm binaries should have 755 instead of 775 perms (#2873)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-02 23:30:08 -03:00
Carlos Alexandro Becker
f3743ed66b
feat: template nfpms.maintainer (#2872) 2022-02-02 15:39:44 -03:00
Carlos Alexandro Becker
8db78f68a2
fix: improve deprecate logs (#2841)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-02 15:31:11 -03:00
Carlos Alexandro Becker
1bdfc9cdff
feat: allow to override build flags by goos/goarch/etc (#2860)
* feat: allow to override build flags by goos/goarch/etc

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

* test: improve

* fix: typos

* feat: templates, merges

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

* test: fix

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

* test: one more case

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

* Update internal/builders/golang/build.go

Co-authored-by: Brian Flad <bflad417@gmail.com>

* Update internal/builders/golang/build.go

Co-authored-by: Brian Flad <bflad417@gmail.com>

* test: more tests

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

Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-02-02 00:01:34 -03:00
Carlos Alexandro Becker
9d481d4630
feat: expose runtime goos and goarch on templates and metadata (#2859)
* feat: expose runtime goos and goarch on templates and metadata

* test: fix duplicated map literal in some os/arch

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-31 22:36:22 -03:00
dependabot[bot]
8fc93a1fbd
feat(deps): bump github.com/xanzy/go-gitlab from 0.52.2 to 0.54.3 (#2820)
* feat(deps): bump github.com/xanzy/go-gitlab from 0.52.2 to 0.54.3

Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.52.2 to 0.54.3.
- [Release notes](https://github.com/xanzy/go-gitlab/releases)
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go)
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.52.2...v0.54.3)

---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* fix: changes

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

* fix: filename

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-30 14:22:17 -03:00
Carlos Alexandro Becker
a1447a3635
fix(aur): version must be numbers only (#2850)
* fix(aur): version must be numbers only

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

* fix: format

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

* fix: revert removed line
2022-01-27 00:23:37 -03:00
Carlos A Becker
45c0e2bcaf
test: group by id 2022-01-23 23:50:54 -03:00
Carlos Alexandro Becker
aad1e1e3d5
feat: write a dist/metadata.json (#2845)
* feat: write a dist/metadata.json

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

* fix: comments

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

* fix: lint

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

* fix: test

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

* fix: lint

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

* fix: lint

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

* test: added one more test
2022-01-23 16:42:42 -03:00
Carlos A Becker
acddce5777
fix(aur): use StrictHostKeyChecking=accept-new by default
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-21 22:17:12 -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 Alexandro Becker
a6a6e11cc9
fix: template main with gomod.proxy (#2834)
* refactor: rename file

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

* fix: template main with gomod.proxy

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-14 10:33:11 -03:00
Carlos Alexandro Becker
b28a28efb6
feat: allow to template commit author (#2826)
* feat: allow to template commit author

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

* chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-11 09:15:28 -03:00
Carlos Alexandro Becker
9af798b993
fix: linter issues after gotea update (#2824)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-10 11:18:26 -03:00
Carlos Alexandro Becker
6c04acd3ab
fix: go install and go-reddit (#2823)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-10 11:10:35 -03:00
Carlos Alexandro Becker
57ef9f0220
refactor: improve gitlab cli a bit (#2810)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-10 10:58:05 -03:00
Engin Diri
339bcabbb5
feat: add generic webhook announcer (#2750) 2022-01-08 14:46:27 -03:00
Carlos Alexandro Becker
bdfb09cfb7
fix: do not filter and sort github-native changelog (#2803)
* fix: do not filter and sort github-native

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

* refactor: improve code a bit

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

* refactor: improve code a bit

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

* fix: changelog header

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-08 09:24:36 -03:00
Carlos Alexandro Becker
4a4c5ec5a6
feat: allow multiple ids on universal binaries (#2811)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-07 09:16:54 -03:00
Evan
fe79b4b9da
feat: add support for GitLab Generic Packages (#2006) (#2745)
GitLab's Generic Package Repository allows uploading files
to GitLab, as an alternative to attachments.

Added the flag `use_package_registry` to the `gitlab_urls` config.
When false, the default, it will behave as before.
When true, it will publish the file to the Generic Package Registry.
Either way, the URL is bound to the release the same

Updated `go-gitlab` to version 0.52.2 which has the new
`GenericPackages.PublishPackageFile` function.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-01-06 22:11:11 -03:00
Brian Flad
791de897bb
feat: support extra_files in publishers (#2770)
Reference: https://github.com/goreleaser/goreleaser/issues/2768

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-01-06 22:04:43 -03:00
Carlos Alexandro Becker
8e1b6a1bbb
feat: allow to template dockerfile (#2797)
* feat: allow to template dockerfile

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

* test: added one more test

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-06 15:34:55 -03:00
Carlos Alexandro Becker
493be086a0
feat(deps): update go-github to v41 (#2793)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-06 15:34:36 -03:00
Carlos Alexandro Becker
848c43a7fa
feat: less logs for defaults (#2795)
closes #2794

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-06 15:32:55 -03:00
Carlos A Becker
bd33dc37ec
test: do not sign tags on tests
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-02 22:14:33 -03:00
Thomas Pelletier
8d5cee398b
fix: don't format github-native changelog (#2802)
The Github changelog generation API returns a pre-formatted changelog. The
current implementation prefixes every line of that log with "* ". This operation
breaks the formatting.

This change makes goreleaser treat github-native changelog as-is, without
trying to modify it.
2022-01-02 22:00:34 -03:00
Carlos Alexandro Becker
bbd79a11a7
fix: artifacts.json should be 0644 instead of 0600 (#2801) 2021-12-31 15:05:28 -03:00
Carlos A Becker
cdcaf038c8
test: fixes sbom tests
refs #2798

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-30 09:47:52 -03:00
Carlos Tadeu Panato Junior
cbdf8caed4
fix: sbom binary filter (#2798)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-30 09:44:15 -03:00
Carlos Alexandro Becker
89ece5595a
fix: logext STDERR use warn instead of error (#2791)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-29 16:12:42 -03:00
Carlos A Becker
114c980726
fix: mutex on checksum refresh
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-22 14:42:18 -03:00
Carlos A Becker
78795394dd
fix: upload sboms to release
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 21:45:28 -03:00
Carlos Alexandro Becker
f42e0872f6
fix: do not group changelog when using github-native (#2781)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 14:21:05 -03:00
Carlos A Becker
559d3ad4e7
chore: fmt
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 00:34:40 -03:00
Carlos A Becker
440e9a63b9
test: fixed snapcraft test
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 00:07:17 -03:00