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

1192 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
2c80588251
fix: better handle password protected keys (#3788)
password-protected keys would give path errors, which was simply not
right.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-20 13:18:12 -03:00
Carlos A Becker
6d3eb57c7a
fix: update to go 1.20.1 2023-02-17 10:44:02 -03:00
Carlos A Becker
76796e679d
chore: update schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-17 10:42:39 -03:00
Mohammad Abbasi
7f445e9f8d
docs: update snap ref links (#3775)
update snapcraft doc supported interfaces ref link
2023-02-13 14:51:48 -03:00
actions-user
9d91b5576a chore: docs auto-update 2023-02-09 12:13:39 +00:00
John Olheiser
6c21b01586
feat: add OpenCollective (#3753)
This PR adds [OpenCollective](https://opencollective.com) as an
announcement pipeline.

![Screenshot from 2023-02-03
00-11-18](https://user-images.githubusercontent.com/42128690/216525902-31e1f358-3c3d-4c1c-9d71-402170a8a0e6.png)

---------

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-02-09 09:11:47 -03:00
Carlos Alexandro Becker
99ae082237
feat: finally deprecate the single build option (#3758)
This option was still being supported, even though undocumented, for
many years now.

I think it's finally time to sunset it for good, in 6 months :)

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-09 08:56:37 -03:00
actions-user
3142c99c7a chore: docs releases json auto-update 2023-02-07 19:47:42 +00:00
actions-user
90531fc879 chore: docs releases json auto-update 2023-02-07 18:12:36 +00:00
actions-user
e770e7b2ea chore: docs releases json auto-update 2023-02-07 12:47:26 +00:00
Carlos Alexandro Becker
81914757da
build: use go1.20 (#3757)
update everything to go 1.20

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-05 13:39:39 -03:00
Carlos A Becker
72bd87dc41
docs: improve changelog 2023-02-02 21:58:13 -03:00
Carlos A Becker
92377e8b6e
docs: twitter non-free api warning
refs #3751

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-02-02 21:06:34 -03:00
actions-user
3461f1f871 chore: docs releases json auto-update 2023-02-02 03:51:07 +00:00
actions-user
b7900887be chore: docs releases json auto-update 2023-02-02 03:20:00 +00:00
Carlos A Becker
aa3aff3cfe
docs: improve git dirty err page
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-30 23:25:23 -03:00
Carlos A Becker
53fdcd7709
docs: reference --clean instead of --rm-dist everywhere
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-30 23:06:46 -03:00
actions-user
9b462fedf3 chore: docs releases json auto-update 2023-01-31 01:52:26 +00:00
actions-user
0b290bbeb6 chore: docs releases json auto-update 2023-01-31 00:24:53 +00:00
Yulian Kuncheff
5c4c7de539
docs: fix deprecation notice for --rm-dist -> --clean (#3733)
<!-- If applied, this commit will... -->
Fix the deprecation notice page to reference the correct new flag
replacing `--rm-dist`

...

<!-- Why is this change being made? -->
The documentation for this deprecation seems incorrect, and live on the
main page.

...

<!-- # Provide links to any relevant tickets, URLs or other resources
-->
https://goreleaser.com/deprecations/#-rm-dist
...

I used this commit to reference what it was being changed to:
4954815ae4
2023-01-30 20:56:40 -03:00
Jo
050f5a43c2
docs: fix typo in changelog page (#3730)
Fix a typo in https://goreleaser.com/customization/changelog/
2023-01-30 10:04:39 -03:00
Carlos A Becker
750664f449
docs: fix nfpm override depends
should be dependencies

closes #3721

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-27 21:45:58 -03:00
Carlos A Becker
98e3a7ff71
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-25 14:17:48 -03:00
actions-user
b036b49c52 chore: docs auto-update 2023-01-24 01:28:55 +00:00
Carlos Alexandro Becker
afc38b79a9
feat: allow to template release.disable and releaser.skip_upload (#3710)
closes https://github.com/goreleaser/goreleaser/issues/3705

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-23 22:27:01 -03:00
Carlos Alexandro Becker
d386cbf3ce
feat: allow to template snaps.grade (#3712)
refs
d73320559b

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-23 22:05:24 -03:00
Carlos A Becker
a1876e3eca
docs: GO_VERSION in the examples might cause confusion
refs #3709

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-22 17:23:31 -03:00
Carlos A Becker
d6504aaa1d
docs: keep --rm-dist for now
refs #3702

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-21 18:25:37 -03:00
Carlos A Becker
3eb759f039
docs: keep --rm-dist on docs for now
refs #3702
2023-01-21 18:23:50 -03:00
Carlos Alexandro Becker
d18adfb57e
feat: deprecate --rm-dist in favor of new --clean flag (#3702)
After talking with @perylemke, we realized that probably most people
will likely expect it to be called --clean instead of --rm-dist, as its
more similar to the popular `make clean` task.

This adds the --clean flag, and make the --rm-dist one deprecated.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-20 23:47:08 -03:00
Carlos A Becker
1381e02f59
docs: quote strings in docker manifests docs 2023-01-20 12:01:08 -03:00
Carlos A Becker
9c5b4d56d9
docs: consistent formatting
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-16 23:48:34 -03:00
Carlos A Becker
44012cc2a0
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-16 22:45:17 -03:00
actions-user
895c597864 chore: docs auto-update 2023-01-17 01:36:57 +00:00
Carlos Alexandro Becker
2450746e5c
feat: add ko support (#3653)
continuing the PR by @developer-guy 


- [x] should be a publisher, as it does publish the images it builds
every time
- [x] `Default` method does not work
- [x] the `fromConfig` thing should probably be on the defaults, too
- [x] wire `--skip-ko`
- [x] documentation
- [x] more tests
- [x] use same registry as docker tests does
- [ ] see if we can make the log output match goreleaser's
- [ ] ??

closes #2556
closes #3490

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: actions-user <actions@github.com>
Co-authored-by: Jason Hall <jason@chainguard.dev>
Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2023-01-16 22:34:49 -03:00
Carlos A Becker
48f77f9ea4
build: fix htmltest config
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-16 22:14:23 -03:00
actions-user
4ec9509951 chore: docs releases json auto-update 2023-01-11 12:35:26 +00:00
actions-user
870c0c56e7 chore: docs releases json auto-update 2023-01-11 12:30:55 +00:00
actions-user
951cab987a chore: docs auto-update 2023-01-11 12:20:10 +00:00
Carlos A Becker
17cd672149
build: use go 1.19.5
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-11 09:18:25 -03:00
Carlos A Becker
cb13b55616
docs: apk key name template
refs #3667

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-11 09:13:38 -03:00
actions-user
87b903ce95 chore: docs releases json auto-update 2023-01-08 03:23:51 +00:00
actions-user
51586c70a8 chore: docs releases json auto-update 2023-01-08 03:03:28 +00:00
Carlos A Becker
95c4c86806
docs: update changelog docs and schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-07 23:45:56 -03:00
Carlos A Becker
8e3567ed0a
refactor: rename ChangeLogGroup to ChangelogGroup
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-07 18:37:44 -03:00
Carlos Alexandro Becker
82be112be1
feat: allow to template telegram.chat_id (#3686)
closes #3682

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-07 17:20:11 -03:00
Carlos A Becker
0286cf7163
fix: schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-07 17:10:46 -03:00
Carlos A Becker
9a3e23db00
chore: schema update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-07 16:56:04 -03:00
Carlos A Becker
13fda95e0e
docs: update schema for changelog.sort
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-04 22:31:46 -03:00
Craig Pastro
2af9bdb689
docs: rename .goreleaser.yml to .goreleaser.yaml in intro (#3680)
<!--

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

Every other instance I have seen so far uses `.yaml` so, for
consistency, let's rename this one?

<!-- # Provide links to any relevant tickets, URLs or other resources
-->
2023-01-03 22:23:56 -03:00
Carlos A Becker
99e1ac1d4e
docs: repology img
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-02 22:19:17 -03:00
Carlos A Becker
938edc4131
docs: fix releases.json
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-02 15:16:33 -03:00
actions-user
cb070a096f chore: docs releases json auto-update 2023-01-02 15:10:52 +00:00
actions-user
064839c55d chore: docs releases json auto-update 2023-01-02 13:56:51 +00:00
Carlos A Becker
7be7093453
docs: update mkdocs options
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2023-01-02 10:53:59 -03:00
actions-user
5aebcb2885 chore: docs releases json auto-update 2023-01-02 13:30:10 +00:00
actions-user
a749bbfaf7 chore: docs releases json auto-update 2023-01-02 13:09:36 +00:00
Carlos Alexandro Becker
ee51a5afb0
fix: do not put binaries in /usr/local/bin (#3677) 2022-12-31 12:17:38 -03:00
Carlos Alexandro Becker
232c982fb0
docs: improve build (#3674)
- generate releases.json et al on our github actions workflow
- use those when building and also on our `run` script
- new releases will dispatch the workflow so it re-generates the needed
files

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 14:55:45 -03:00
Carlos A Becker
2ae0eaf4dd
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 14:21:04 -03:00
Carlos A Becker
71000969c0
docs: improve docs build/organization
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-28 23:41:46 -03:00
Carlos A Becker
a3867c8ccb
docs: clarify token files a bit
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-28 10:19:29 -03:00
Carlos A Becker
ee9816bf7b
docs: schema update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-27 18:36:05 -03:00
actions-user
fccdea0e3b chore: docs auto-update 2022-12-27 20:44:20 +00: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 A Becker
580022b1b6
docs: typo fix
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-19 23:51:17 -03:00
actions-user
19b12018b7 chore: docs auto-update 2022-12-20 01:35:45 +00:00
Carlos A Becker
d4b570a002
fix: clarify scoop no windows archive errors
closes #3648

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-18 16:49:55 -03:00
Carlos A Becker
d7ce4841c8
fix: jsonschema for chocolateys
closes #3647

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-18 16:42:03 -03:00
Carlos A Becker
27af559a62
docs: improve reproducible builds 2022-12-16 11:14:33 -03:00
Carlos A Becker
84392e56cf
chore: schema update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-15 14:06:19 -03:00
Carlos Alexandro Becker
cac3f17562
feat(deps): build with go 1.19.4 (#3644)
latest and greatest

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-14 15:23:40 -03:00
actions-user
1b14f0d26f chore: docs auto-update 2022-12-14 15:18:53 +00:00
Carlos Alexandro Becker
2e5a8e5a54
feat: allow to template archives.files.info (#3630)
this allows to template the owner, group and mtime in file infos inside
archives.

should help towards reproducible builds!

goes well with #3618

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-14 12:16:43 -03:00
Carlos Alexandro Becker
3cfe215d4c
docs: update github-action documentation (#3640)
Using the new version (v4) everywhere.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-14 12:16:24 -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
Jo
960814aea8
docs: fix skip_push parameter to skip_build (#3628)
Fix the wrong `skip_push` to `skip_build` in `docker.md`.
2022-12-08 09:43:03 -03:00
Carlos A Becker
5c15e5a6ef
docs: errors/build
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-04 10:29:02 -03:00
Carlos A Becker
b06f217e3b
docs: update docker options and schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-02 22:38:39 -03:00
actions-user
370575107e chore: docs auto-update 2022-12-03 00:51:42 +00:00
Carlos Alexandro Becker
f5696d01ee
feat: custom tag.sort (#3611)
closes #3609

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-02 21:50:04 -03:00
Carlos Alexandro Becker
e72ab30ac8
fix: improve schema for signs (#3603)
adds all the options allowed in the `artifacts` field to the schema

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-29 21:38:51 -03:00
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
Carlos A Becker
427003f1fe
docs: clarify tags a bit
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-14 00:33:32 -03:00
Carlos A Becker
4c8628d590
docs: improve page
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-13 14:08:51 -03:00
Gökhan Özeloğlu
13bb05347d
docs: fix url misspelling (#3456)
* Fix `http` with `https`.

Signed-off-by: Gökhan Özeloğlu <gokhan.ozeloglu@deliveryhero.com>

Signed-off-by: Gökhan Özeloğlu <gokhan.ozeloglu@deliveryhero.com>
2022-10-12 19:09:34 -03:00
Carlos A Becker
cd6ca55db5
fix: install script 2022-10-12 01:16:33 -03:00
Carlos A Becker
2f875c7d8e
docs: improvements 2022-10-12 01:12:38 -03:00
Carlos A Becker
4c71455daf
docs: fix typos 2022-10-12 01:04:51 -03:00
Carlos A Becker
ea9f7f70dc
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-12 01:01:24 -03:00
Carlos A Becker
eb9699142f
docs: update from pro
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-12 00:12:42 -03:00
Carlos A Becker
d58fa71b0d
docs: fix htmltest 2022-10-12 00:04:19 -03:00
Carlos A Becker
20b773de28
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-11 22:09:42 -03:00
actions-user
bd72d6edb5 chore: docs auto-update 2022-10-11 12:19:18 +00:00
Carlos A Becker
2c61a56b63
docs: update post checkout page 2022-10-06 15:02:56 -03:00
Carlos A Becker
526bdff1f4
docs: update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-06 15:00:38 -03:00
actions-user
c6e092a6ca chore: docs auto-update 2022-10-06 00:27:12 +00:00
Carlos Alexandro Becker
b4159f6377
feat(deps): go 1.19.2 (#3443)
latest security fixes

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-05 21:24:45 -03:00
Carlos A Becker
b88e836d3a
chore: update schema 2022-10-05 10:50:29 -03:00
Carlos Alexandro Becker
bb170f3b9c
docs: better document multiple tokens error (#3438)
closes #3361
2022-10-05 10:27:02 -03:00
Carlos Alexandro Becker
a42c8ae706
feat: aur backup (#3366)
closes #3353
2022-10-05 09:42:17 -03:00
Carlos Alexandro Becker
24178b1060
feat: permanently remove buildpacks (#3414)
removing for good!

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-05 09:42:05 -03:00
NoahK
81de8addf1
feat: MarkdownV2 for Telegram announcer (#3435)
Set MarkdownV2 as parse mode for Telegram announcer.

This allows for additional formatting in the announcement, such as
`code` or _italic_ sections. For details, see the official [Telegram Bot
API](https://core.telegram.org/bots/api#markdownv2-style).

If someone has the time (not added in this PR), I think it would be
great to add a field to the Telegram config for the parse mode. This
would allow setting a different parse mode than MarkdownV2, such as
HTML.

This fixes #3431.
2022-10-05 09:35:01 -03:00
Carlos Alexandro Becker
4a51099964
fix: gomod.env not being used (#3434)
Fixes  #3426

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-04 13:01:18 -03:00
Carlos A Becker
ae9c8acc99
docs: post-checkout 2022-10-04 09:41:20 -03:00
Kotaro Inoue
415b903a7b
docs: fix url_template line of the brew example (#3432)
<!--

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 fixes one line in the `homebrew` example section.

## Why is this change being made?

In the example of the `homebrew` section, the `url_template` value seems
to be wrong.
2022-10-04 09:24:09 -03:00
Carlos A Becker
0ca7af86c2
docs: improve wording a bit
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-30 20:21:11 -03:00
actions-user
7f3cef0c2d chore: docs auto-update 2022-09-30 23:10:27 +00:00
actions-user
00ec06599e chore: docs auto-update 2022-09-30 23:08:24 +00:00
actions-user
0a7e77e859 chore: docs auto-update 2022-09-30 23:04:56 +00:00
actions-user
8acc7299d5 chore: docs auto-update 2022-09-30 13:49:20 +00:00
actions-user
872351f1f2 chore: docs auto-update 2022-09-30 12:47:14 +00:00
actions-user
4a398954ed chore: docs auto-update 2022-09-30 12:27:58 +00:00
actions-user
86895ffb77 chore: docs auto-update 2022-09-30 02:01:13 +00:00
Carlos A Becker
c006c9d208
chore: do not login on snapcraft on snapshots 2022-09-27 21:20:57 -03:00
Carlos A Becker
e070258c90
docs: improve wording 2022-09-27 12:04:47 -03:00
Carlos A Becker
5f66f6b93f
docs: clarify brew docs 2022-09-27 11:52:35 -03:00
Carlos A Becker
452e150c76
docs: fix example 2022-09-27 11:52:35 -03:00
actions-user
6a9606d0b4 chore: docs auto-update 2022-09-27 13:14:25 +00:00
Carlos Alexandro Becker
f3849e2bbe
fix: client key and cert should not be required (#3409)
closes #3407

Signed-off-by: Sheridan C Rawlins <scr@yahooinc.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Sheridan C Rawlins <scr@yahooinc.com>
2022-09-27 10:12:34 -03:00
Alexandre Couedelo
b8d3fa3a39
docs: archives.*.builds is type []string (#3406)
The example creates an error because builds is supposed to be an array
here is shown as a string

<!--

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-09-26 12:30:07 -03:00
Carlos A Becker
5058540112
docs: improve actions docs
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-25 10:46:42 -03:00
Carlos A Becker
39f18943bf
docs: make actions/docker a bit clearer 2022-09-25 10:45:18 -03:00
Carlos Alexandro Becker
d7cf3dd889
docs: update nfpm docs (#3396)
closes #3380

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-24 22:42:30 -03:00
Carlos A Becker
6aa3f5a724
chore: minor workflows improvements 2022-09-22 16:00:05 -03:00
Carlos A Becker
7ea12d2ac5
docs: clarify build docs a bit 2022-09-18 13:57:48 -03:00
Carlos Alexandro Becker
c1965923b0
docs: improve wording/formatting in several places (#3384)
this just improves docs wording and formatting in several places.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-17 00:13:09 -03:00
Carlos Alexandro Becker
36a48eabb7
fix: binary archive when multiple builds (#3385)
closes #3383

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-16 23:47:06 -03:00
Batuhan Apaydın
826944d62f
docs: add COSIGN_EXPERIMENTAL=1 for verify-blob (#3378)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

<!--

Hi, thanks for contributing!

Please make sure you read our CONTRIBUTING guide.

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

-->

Cross-ref: https://github.com/fluxcd/source-controller/issues/899

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2022-09-15 13:29:12 -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 A Becker
a8403f2a0c
docs: improve actions docs 2022-09-13 23:50:59 -03:00
Carlos A Becker
cb686785b0
docs: why we made it, is it any good, video, etc 2022-09-13 23:47:23 -03:00
Carlos Alexandro Becker
61f586e625
docs: version recent changes (#3367)
versioned all new options since v1.2 (late 2021).

Should be enough to fix #3317 for now.

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-11 16:54:51 -03:00
Carlos A Becker
b8a225b6c7
docs: improve monorepo docs
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-09-04 16:16:34 -03:00
actions-user
101c6af085 chore: docs auto-update 2022-09-04 02:29:09 +00:00
Carlos A Becker
dbc32c23ee
docs: improve sponsors page 2022-09-03 23:27:04 -03:00
Carlos A Becker
1c96e113c4
docs: improve links page 2022-09-03 23:21:55 -03:00
Carlos A Becker
1830126ee0
docs: add eula and linkedin to links 2022-09-03 23:18:10 -03:00
Colin Kennedy
45387f5dc0
docs: insert missing word (#3352)
<!--

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-08-31 14:40:08 -03:00
Carlos A Becker
e31f7806dc
docs: update schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-30 22:25:33 -03:00
actions-user
23a7922f8e chore: docs auto-update 2022-08-30 15:07:04 +00:00
Carlos Alexandro Becker
efdba10f58
fix: guard changelog commit abbrev behind config (#3349)
this allows the user to specify the abbrev lenght to use, and will also add the option to omit the commit hash altogether by setting it to -1.
default is doing nothing

closes #3348

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-30 12:04:01 -03:00
Carlos A Becker
999cf91af4
docs: improved wording in many places 2022-08-28 16:15:24 -03:00
Carlos A Becker
d853ee2db7
docs: schema update
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-27 17:38:23 -03:00
Carlos A Becker
c9a9916dc1
docs: update install page 2022-08-25 14:45:20 -03:00
Carlos Alexandro Becker
d7acf21f03
fix: source archive add subfolders (#3343)
`--add-file` adds only the `--prefix` joined with the basename of the added file, so, adding a folder like `vendor` would break havoc.

this basically writes our own source archives (which are more compressed) and allows to add an entire folder easily, as well as other mappings as `archives` already supports. 

refs #3102 #2911

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-25 02:15:37 -03:00
actions-user
12c425614c chore: docs auto-update 2022-08-25 04:12:08 +00:00
Carlos Alexandro Becker
e67975ea99
feat: add extra files to source archives (#3102)
closes https://github.com/goreleaser/goreleaser/issues/2911

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-25 01:10:26 -03:00
Carlos A Becker
7f04e4df98
docs: update jsonschema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-22 21:48:57 -03:00
actions-user
e55df16ff1 chore: docs auto-update 2022-08-23 00:36:57 +00:00
Carlos A Becker
797a1ccc5f
feat: release with target_commitish in another repo
We should not imply the target_commitish, as some users might want to
have the code in one repo and the releases in another (e.g. private
code, public releases), so the commit might not be there.

We should instead allow the user to set the `target_commitish` (or not),
and pass it down to the github api.

refs 95bba02211
refs #3044
refs #3330

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-22 21:31:28 -03:00