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

960 Commits

Author SHA1 Message Date
Carlos A Becker
bb6181c1bb
docs: document release upload errors 2022-11-29 07:19:50 -03:00
Carlos Alexandro Becker
1b8395d6b6
feat(build): allow to template env (#3592)
GoReleaser evolved a lot since the last time I tried to implement this
>1 year ago.
Now its 100% possible, and way simpler to do it!

closes #3580
refs #2583

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-25 15:26:29 -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
eedf9578a6
docs: clarify cgo
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-24 18:18:29 -03:00
Carlos Alexandro Becker
a1305d3912
fix: validate env templates (#3591)
ignore invalid environment variables (e.g. no key, no value, or no equal
sign)

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-24 17:12:54 -03:00
John Olheiser
b66568529d
feat: add windows to default builds (#3581)
Resolves #3579

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2022-11-24 15:48:37 -03:00
Carlos Alexandro Becker
f3f1c08caf
feat: title template function (#3590)
added new `title` template function.


extracted from #3589

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-24 15:21:42 -03:00
Carlos Alexandro Becker
fb901ae6d3
docs: make co-marketing more strict on eula (#3583)
This only makes it more strict for goreleaser, and in my experience so
far, is what most companies want.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-22 23:54:11 -03:00
Mark Phelps
0c6d209946
docs: fix typo in pro docs (#3586)
achives -> archives

<!--

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... -->

...

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

...

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

...
2022-11-22 22:37:01 -03:00
John Olheiser
090365bf78
chore: verify website for mastodon (#3576)
> You can verify yourself as the owner of the links in your profile
metadata. For that, the linked website must contain a link back to your
Mastodon profile. The link back must have a `rel="me"` attribute. The
text content of the link does not matter.

I checked that `display: none;` doesn't affect the verification process,
I was able to "verify" a link using a quick test on my own profile.

I'm not convinced this is the _best_ way, but it is _a_ way. On other
pages on the site you have a mastodon link, if those were added to the
front page they would also suffice (assuming the above criteria are
met).
2022-11-21 09:36:15 -03:00
Carlos A Becker
b76b65875d
docs: note trailing slash on nfpm 2022-11-20 14:22:19 -03:00
Carlos A Becker
de254d582f
docs: mastodon 2022-11-20 13:20:26 -03:00
Carlos A Becker
cf8586ed7c
chore: schema update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 23:08:34 -03:00
actions-user
ad502829b6 chore: docs auto-update 2022-11-17 23:56:56 +00:00
Carlos Alexandro Becker
ab08d0b706
fix: move mastodon server to yaml (#3568)
refs #3567

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 20:54:57 -03:00
actions-user
fe24ee6741 chore: docs auto-update 2022-11-17 23:42:16 +00:00
John Olheiser
e65c53172e
feat: add mastodon (#3567)
This PR adds [mastodon](https://joinmastodon.org/) as an announcement
pipeline. 🥳


![mastodon-announce](https://user-images.githubusercontent.com/42128690/202544345-d90d8f10-0818-4bc2-bc35-3dbcba4254b0.png)


Resolves #3566

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2022-11-17 20:40:00 -03:00
Carlos A Becker
79b7cebdae
docs: clarify archlinux and v1.13
closes #3560

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-16 09:32:54 -03:00
Carlos A Becker
c4941ebf51
chore: update pro schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-15 08:59:22 -03:00
Carlos Alexandro Becker
b55b9976c7
feat: use digest to sign docker images/manifests (#3556)
this drives it home by using the actual images/manifest digests to sign
with cosign by default.

the default signing command is changing in this PR, but since `digest`
should be always there (if not, the pipeline will fail way earlier), it
should be fine.

refs https://github.com/goreleaser/goreleaser/issues/3496
refs https://github.com/goreleaser/goreleaser/pull/3540

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-15 08:21:18 -03:00
Carlos Alexandro Becker
ee6225fb5e
docs: improve schema (#3553)
this should prevent yamlschema from complaining on some fields that
accept an integer or string (goarm) and a bool or string (skip*)

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-14 15:01:24 -03:00
Carlos Alexandro Becker
bb00edac2a
fix: set dockers.goarm to 6 by default (#3552)
fixes #3545

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-14 13:59:01 -03:00
actions-user
5c93447f7b chore: docs auto-update 2022-11-14 13:10:08 +00:00
Carlos A Becker
c4fd0a0c5b
chore: schema update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-11 23:57:03 -03:00
Carlos A Becker
964e703fb4
docs: small updates
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-11 23:54:16 -03:00
Fabio Ribeiro
f2281e8ff2
feat: chocolatey support (#3509)
This PR adds support for generating the structure used to pack and push
Chocolatey Packages. And will solve the #3154

Is not ready for merge yet, but has the main structure, and ready for
comments.

Accordingly to Chocolatey, in order to build a package, it's necessary a
`.nuspec` and `chocolateyinstall.ps1` files at least, having these ones,
we could pack and distribute without adding the binary inside the final
package and that was implemented here.

To complete, will be necessary to define the package build and
distribute, however will be required to have Chocolatey installed
(Windows Only). One of alternatives that I thought was, publish the
files like Scoop and Brew in a separate repository, and there we could
use `chocolatey` through
[crazy-max/ghaction-chocolatey](https://github.com/crazy-max/ghaction-chocolatey).

Chocolatey has a lot of good examples of repositories:

https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/curl

A final compilation of the missing parts:
- [x] How to pack and push (chocolatey)
- [x] Documentation

Sorry for the long description😄 

All feedback very welcome!

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-11-11 23:52:32 -03:00
Carlos A Becker
e47bad4997
docs: small improvement 2022-11-11 23:42:51 -03:00
actions-user
59948928e5 chore: docs auto-update 2022-11-12 02:37:32 +00:00
Giorgio Azzinnaro
0a536f08fd
feat: build of shared/static libraries (#3511)
<!--

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 improves the handling of shared or static libraries by
GoReleaser. It uses the default behaviour of the Go compiler by
appending the right extension to libraries.

* `.so` and `.a` for Linux shared libraries and static libraries
respectively
* `.dylib` and `.a.` on Darwin
* `.dll` and `.lib` on Windows (pre-existent)

It does not add any configuration option to `.goreleaser.yml`, since it
leverages the existing `buildmode` flag.

Additionally, this PR takes care of adding the generated header file
into the archive.

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

Personally I would leverage this change to release some software both as
a CLI and as a shared library. I believe others who use CGo or need
interoperability with Go from other languages could benefit from this.

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

This was previously discussed in #3497.

I couldn't quite think of a proper way to add some tests to the header
archiving feature. Any recommendation?
2022-11-11 23:35:51 -03:00
Adam Harvey
0f79adca87
docs: fix wording (#3542)
<!--

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... -->

Fixes wording in the docs page about Git being in a dirty state.

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

The goal is to improve the end-user reading of the instructions.

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

...
2022-11-10 22:30:18 -03:00
Carlos A Becker
b9241a444c
docs: add more podman details
refs https://github.com/goreleaser/goreleaser/issues/3538
2022-11-08 23:15:12 -03:00
Carlos A Becker
d4c3e82a6c
docs: fix redirects 2022-11-08 00:18:14 -03:00
Carlos A Becker
ed30c4e2db
docs: /twitter, discord, linkedin etc 2022-11-08 00:06:24 -03:00
Carlos A Becker
6dac256b45
docs: added /security 2022-11-08 00:05:36 -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
Marc Miller
311db136d6
docs: update docs to mention gitlab protected vars (#3528)
add warning about gitlab-ci protected variables for both CI/gitlab and
SCM/gitlab.
Failing to run the pipelines on a protected ref will cause goreleaser to
fail with `401: unauthorized` if for example, GITLAB_TOKEN is a
protected variable and the CI Job is running on a tag that is not
protected.

<!--

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... -->

Add a warning about Gitlab CI and protected variables

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

To prevent future users from running into issues with protected
variables.

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

[Discord
Convo](https://discord.com/channels/890434333251362866/890434334803247126/1038130560293412955)
2022-11-04 16:04:19 -03:00
Marc Miller
b101e3bada
docs: add Syft to contributing docs (#3529)
Update contributing doc to include Syft

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

Help contributors prevent errors with `task test`
2022-11-04 16:03:53 -03:00
Carlos A Becker
b6e5b87711
docs: instruct how to use a pinned version of the jsonschema
closes #3495
2022-11-02 22:14:25 -03:00
actions-user
9c750737b9 chore: docs auto-update 2022-11-02 18:31:45 +00: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 Alexandro Becker
1a69d44d6d
fix: allow to template scoop/brew/krew repo ref (#3521)
closes #3508

- adds template support for krew and scoop repo refs
- template branch on reporef on brew as well

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-02 14:54:16 -03:00
Carlos Alexandro Becker
7544f7ab96
feat: update to go 1.19.3 (#3523)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-02 14:19:01 -03:00
John Olheiser
1e39e3ce79
docs: add woodpecker ci (#3516)
This PR adds [woodpecker](https://woodpecker-ci.org) to the CI docs.

Signed-off-by: jolheiser <john.olheiser@gmail.com>
2022-10-31 14:45:37 -03:00
Carlos Alexandro Becker
c71d8ecafa
docs: gif (#3504)
gif powered by vhs cc/ @maaslalani

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-27 15:06:26 -03:00
Carlos A Becker
10586bdba7
docs: clarify lack of vcs info when building from proxy
closes #3491

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-25 22:16:32 -03:00
Sam Therapy
f1e63050d6
docs: Mention Gitea explicitly (#3489)
This PR adds explicit mention of Gitea in the AUR, Homebrew and Scoop
sections.

I have tested and tried using Homebrew and Scoop with a Gitea instance,
I have not tried the AUR but it should work the same.
2022-10-21 22:30:54 -03:00
Carlos A Becker
1485e6f23f
docs: formatting 2022-10-15 19:33:18 -03:00
Carlos A Becker
7e9964547d
docs: improve partial docs 2022-10-15 19:31:05 -03:00
Carlos A Becker
5d75dec810
docs: improve go first class ports docs 2022-10-15 19:31:05 -03:00
Carlos Alexandro Becker
9e6fb4f55c
feat: more templateable fields for blobs (#3461)
closes #3460

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-14 10:17:30 -03:00