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

3051 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
eb9950e794
fix: pin cosign installer action version
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-02 22:43:19 -03:00
Carlos Alexandro Becker
19cd0e2289
refactor: remove unneeded if
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 23:17:01 -03:00
Carlos Alexandro Becker
0e54c8d882
test: checksum extra file that does not exist
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 23:16:26 -03:00
angie pinilla
9667216403
feat: add support for checksum generation for extra files (#2406)
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-09-01 23:07:43 -03:00
Carlos Alexandro Becker
17f71590e8
docs: announce
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 16:48:16 -03:00
Carlos Alexandro Becker
a9239e875d
chore : fmt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 16:47:53 -03:00
Carlos Alexandro Becker
c2ffee8dd5
fix: merge conflicts
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 16:47:13 -03:00
Furkan Türkal
aa28f31ab5
feat: announce: slack (#2429)
Fixes #2425

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
2021-09-01 16:46:25 -03:00
Carlos Alexandro Becker
b661a57105
feat: allow to template brew message (#2447)
closes #2441

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 10:27:31 -03:00
Carlos Alexandro Becker
b63e544725
feat: templateable nfpm key files (#2448)
closes #2419

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 10:27:08 -03:00
Batuhan Apaydın
e2b5e5874e
docs: enhance Gitlab documentation (#2449)
* style(ci): enhance Gitlab documentation

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

* Update www/docs/ci/gitlab.md

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-09-01 09:12:28 -03:00
Carlos Alexandro Becker
1052ce17de
fix: log docker args on debug
refs #2438

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:34:21 -03:00
Carlos Alexandro Becker
c08bb7f24c
refactor: order methods
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:19:10 -03:00
Carlos Alexandro Becker
990fb63aef
feat: allow to use .tar as archive format
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:09:18 -03:00
Carlos Alexandro Becker
8858049a28
refactor: tar logic
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:08:57 -03:00
Carlos Alexandro Becker
275e17bc76
feat: support links inside archives (#2436)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:08:07 -03:00
Carlos Alexandro Becker
b132d00aec
fix: build dir that dont exist yet (#2435)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 22:42:15 -03:00
Carlos Alexandro Becker
55f420e9d1
docs: fix typo
closes #2446

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 22:41:09 -03:00
Carlos Alexandro Becker
788add91d7
chore: fmt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 10:49:22 -03:00
Batuhan Apaydın
d3db692a0b
feat: announce: reddit (#2431)
* feat: announce: reddit

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

* Update .goreleaser.yml

* Update internal/pipe/announce/announce.go

* Update pkg/defaults/defaults.go

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-08-31 10:48:45 -03:00
dependabot[bot]
5e906b25e3
chore(deps): bump github.com/caarlos0/env/v6 from 6.6.2 to 6.7.0 (#2444)
Bumps [github.com/caarlos0/env/v6](https://github.com/caarlos0/env) from 6.6.2 to 6.7.0.
- [Release notes](https://github.com/caarlos0/env/releases)
- [Changelog](https://github.com/caarlos0/env/blob/master/.goreleaser.yml)
- [Commits](https://github.com/caarlos0/env/compare/v6.6.2...v6.7.0)

---
updated-dependencies:
- dependency-name: github.com/caarlos0/env/v6
  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>
2021-08-31 10:42:48 -03:00
Carlos Alexandro Becker
70057e81e5
ci: auto assign project to issues/prs
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-25 17:23:43 -03:00
Carlos Alexandro Becker
d580a488d9
docs: fix paths
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 22:34:17 -03:00
Carlos Alexandro Becker
c60493d3d8
docs: verifying the binaries and images
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 22:31:02 -03:00
Carlos Alexandro Becker
c100de32a3
fix: rename checksums file
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 22:24:46 -03:00
Carlos Alexandro Becker
dd5ccf7170
feat: use go 1.17 (#2408)
* feat: use go 1.17

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

* fix: go mod tidy

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

* test: fix failing test

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

* ci: increase lint timeout

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

* ci: increase lint timeout

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 20:49:11 -03:00
Carlos Alexandro Becker
04a62ae481
ci: sign goreleaser artifacts
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 11:30:39 -03:00
Carlos Alexandro Becker
ad57a133fb
feat: sign docker images with cosign (#2423)
* feat: sign docker images with cosign

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

* fix: improve sign logging

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

* fix: do not sign if skip publish is set

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

* fix: install cosign

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

* docs: fix wrong docs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-24 11:22:09 -03:00
Carlos Alexandro Becker
5bdbffc96f
feat: allow to template signs.stdin
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-23 22:00:44 -03:00
Carlos Alexandro Becker
f3f77c7e4a
test: fix auto-snapshot test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-21 11:18:54 -03:00
Carlos Alexandro Becker
67e2dc6020
refactor: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-21 11:11:01 -03:00
Christian Mäder
757701f65c
feat: snapshot.name_template should use tag instead of version (#2417)
* fix: Change the init-template for snapshot.name_template

* fix: Change the default-template for snapshot.name_template

BREAKIND CHANGE: The default value of `snapshot.name_template` is changed.
2021-08-21 10:59:15 -03:00
Carlos Alexandro Becker
4c399575fc
fix: prevent panic on invalid git remote url (#2416)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-21 10:57:19 -03:00
Rob Prentiss
013bd69126
fix: run 'go version' command in build.Dir (#2411)
Currently, the 'goVersion' function is run without any directory set.
This is problematic when a build uses the 'dir' config in combination
with the 'gobinary' config. When 'gobinary' is a relative path (like a
script in the current repository), goVersion silently fails, returning
an empty string.

This commit refactors 'goVersion' to execute the command with '.Dir' set
to the 'build.Dir', in addition to now returning an error, so that
issues may be bubbled up in the build log, rather than silently failing.

It also adds a new helper function to facilitate running 'goVersion' by
creating a temporary executable that outputs a given 'version' string.
This function is only currently used by 'TestWithDefaults'.

Co-authored-by: Rob Prentiss <prentiss@apple.com>
2021-08-21 10:56:54 -03:00
dependabot[bot]
5e006eb236
chore(deps): bump golang from 1.16.7-alpine to 1.17.0-alpine (#2410)
Bumps golang from 1.16.7-alpine to 1.17.0-alpine.

---
updated-dependencies:
- dependency-name: golang
  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>
2021-08-17 09:37:19 -03:00
Carlos Alexandro Becker
3966921c86
fix: upload gcs blobs to bucket root (#2409)
* fix: upload gcs blobs to bucket root

* test: blob upload to bucket root

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

Co-authored-by: Adam Bouqdib <adam@abemedia.co.uk>
2021-08-17 00:31:20 -03:00
dependabot[bot]
43b91b6baf
chore(deps): bump code.gitea.io/sdk/gitea from 0.14.1 to 0.15.0 (#2402)
Bumps code.gitea.io/sdk/gitea from 0.14.1 to 0.15.0.

---
updated-dependencies:
- dependency-name: code.gitea.io/sdk/gitea
  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>
2021-08-16 23:02:20 -03:00
Carlos Alexandro Becker
a813644522
feat: support windows/arm64 (#2407)
* feat: support windows/arm64

closes #2404
closes #2405

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

* fix: broken test

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

* docs: deprecation warnings

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-16 23:00:56 -03:00
Carlos Alexandro Becker
d329a9c0d3
feat: add id to dockers and docker_manifests (#2399)
* feat: add id to dockers and docker_manifests

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

* feat: actually allow to use the images

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-16 22:11:54 -03:00
Carlos Alexandro Becker
72b7f3b302
feat: remove deprecated docker options (#2400)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-16 15:21:16 -03:00
Carlos Alexandro Becker
a4a96eab54
fix: main check when using gomod.proxy (#2390)
* fix: main check when using gomod.proxy

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

* fix: main check when using gomod.proxy

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

* test: fix

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

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-13 20:33:48 -03:00
dependabot[bot]
27150b099f
chore(deps): bump github.com/xanzy/go-gitlab from 0.50.2 to 0.50.3 (#2392)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.50.2 to 0.50.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.50.2...v0.50.3)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-12 09:02:35 -03:00
Carlos Alexandro Becker
1d90ecb8c3
docs: add more blog posts
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-10 21:52:32 -03:00
dependabot[bot]
8eab9af272
chore(deps): bump golang from 1.16.6-alpine to 1.16.7-alpine (#2385)
Bumps golang from 1.16.6-alpine to 1.16.7-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-06 10:03:22 -03:00
dependabot[bot]
70939c7f66
chore(deps): bump github.com/xanzy/go-gitlab from 0.50.1 to 0.50.2 (#2383)
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.50.1 to 0.50.2.
- [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.50.1...v0.50.2)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-05 08:51:54 -03:00
Carlos Alexandro Becker
9ed3c0c4a7
docs: fix monorepo.dir prop
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-04 17:39:50 -03:00
Jonas Lundberg
7f0edf6fe0
fix: make scoop write .json when --skip-publish (#2380)
* fix: make scoop write .json when --skip-publish

Don't skip the pipeline altogether but write
out the manifest.json file as the homebrew
pipeline does, only skip committing to the repo.

closes #2374

* Update internal/pipe/scoop/scoop_test.go

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-08-03 02:37:02 +00:00
Edward Maxwell-Lyte
18695c2687
fix: sort tags by version not day of the week (#2377)
* fix: tag sorting

When the HEAD commit has multiple tags, they are sorted in order to select the latest so that it can be released.

However, the existing sort would not work if there were multiple commits across a Wednesday and a Thursday.

For example:

```
git tag --points-at HEAD --format='%(creatordate)%09%(refname)'
Wed Jul 28 07:13:19 2021 +0000  refs/tags/v0.0.183
Thu Jul 29 13:31:07 2021 +0000  refs/tags/v0.0.184
Thu Jul 29 13:38:42 2021 +0000  refs/tags/v0.0.185
Thu Jul 29 13:57:44 2021 +0000  refs/tags/v0.0.186
```

When using the existing sort the `creatordate` field was targeted and reversed. Alphabetically Thursday comes before Wednesday, so that is reversed and the Wednesday release always comes first:
```
git tag --points-at HEAD --sort=-version:creatordate --format='%(creatordate)%09%(refname)'
Wed Jul 28 07:13:19 2021 +0000  refs/tags/v0.0.183
Thu Jul 29 13:57:44 2021 +0000  refs/tags/v0.0.186
Thu Jul 29 13:38:42 2021 +0000  refs/tags/v0.0.185
Thu Jul 29 13:31:07 2021 +0000  refs/tags/v0.0.184
```

This would make goreleaser attempt to release that existing tag again, and fail.

If we instead sort by reversed `refname` we get the tags ordered by their numeric value, which ignore the day of the week of release:
```
git tag --points-at HEAD --sort=-version:refname --format='%(creatordate)%09%(refname)'
Thu Jul 29 13:57:44 2021 +0000  refs/tags/v0.0.186
Thu Jul 29 13:38:42 2021 +0000  refs/tags/v0.0.185
Thu Jul 29 13:31:07 2021 +0000  refs/tags/v0.0.184
Wed Jul 28 07:13:19 2021 +0000  refs/tags/v0.0.183
```

Allowing the latest version, 0.0.186 in this case, to be targeted for release.

* corrected test case

* add space

* remove space
2021-08-02 16:20:09 +00:00
Carlos Alexandro Becker
5227ef0c24
docs: update docs
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-01 21:07:00 -03:00
Carlos Alexandro Becker
5b3f286ce4
docs: update url
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-29 10:39:14 -03:00