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

3086 Commits

Author SHA1 Message Date
Carlos Tadeu Panato Junior
a9074a3af0
chore(ci): update cosign installer action to 1.2.0 (#2490)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-09-15 10:40:15 -03:00
Carlos Tadeu Panato Junior
8ecddfa2a0
docs: fix environment variable to be COSIGN_PWD (#2489)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-09-15 08:50:43 -03:00
Carlos Alexandro Becker
cd93cda2c6
chore: gofumpt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-13 11:09:24 -03:00
Carlos Alexandro Becker
5f4ea3f9cb
docs: improve announce and home
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-12 22:41:54 -03:00
Carlos Alexandro Becker
b654a31160
docs: update prebuilt opts
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-12 20:40:50 -03:00
Carlos Alexandro Becker
715b1c2d64
fix: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-12 19:59:49 -03:00
Carlos Alexandro Becker
e8c1a8af52
chore: gofumpt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-12 19:59:26 -03:00
Engin Diri
1c44c2149d
feat: announce: teams (#2482)
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
2021-09-12 19:57:58 -03:00
Carlos Alexandro Becker
35bb673049
docs: install lunr
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 15:04:10 -03:00
Carlos Alexandro Becker
b542041df4
docs: fix list
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 15:02:36 -03:00
Carlos Alexandro Becker
315c805efc
docs: improve docs
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 15:01:47 -03:00
Carlos Alexandro Becker
2c6c832d3c
docs: fix list
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 14:56:56 -03:00
Carlos Alexandro Becker
65e2505ef4
docs: prebuilt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 14:56:09 -03:00
Carlos Alexandro Becker
7b0b88f282
refactor: docker sign is actually a publisher
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 14:46:30 -03:00
Carlos Alexandro Becker
435593ae41
chore: gofumpt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 14:36:40 -03:00
Carlos Alexandro Becker
6f219c2c38
test: coverage of buildtarget package
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 14:33:01 -03:00
Carlos Alexandro Becker
c18d2236fa
docs: new pro features
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 14:33:01 -03:00
Engin Diri
311479504e
feat: announce: discord (#2478)
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
2021-09-11 17:23:54 +00:00
Carlos Alexandro Becker
0017dc9351
fix: nfpm subdir in binary name
closes #2476

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 13:04:13 -03:00
Carlos Alexandro Becker
d77f862fa4
refactor: improve build (#2475)
* refactor: improve build

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

* test: coverage

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-11 13:01:57 -03:00
Carlos Alexandro Becker
8241a23e43
chore(deps): bump gocloud.dev from 0.23.0 to 0.24.0
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-10 23:41:28 -03:00
Erkan Zileli
5ea003c6f6
feat(docker): add buildpacks support (#2461)
* feat(docker): add buildpacks support

Signed-off-by: Erkan Zileli <erkanzileli@gmail.com>

* fix: move buildpacker imager code into own go file

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

* fix: use docker imager push method for buildpack imager push

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

* fix: return statement

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

* move test into api_buildback_test

Signed-off-by: Furkan <furkan.turkal@trendyol.com>

* fix: use buildpacks instead of buildpack

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

* fix(lint): fix lint issue

* fix(buildpacks): use cwd instead of root directory

* doc: add how to use a custom buildpack document

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>

* fix(doc): update docs as suggested

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-09-11 02:21:33 +00:00
Steve Azzopardi
b0a6bf4705
fix: panic on gitlab create release (#2473)
Background
---
In 5bcfa9042d the condition was changed to
that it can support the new status code returned by GitLab. However, the
condition is now checked `resp != nil` and not `resp == nil` which causes
the condition not to trigger when the resp is nil and only returns an
error. We can reproduce this issue by running
`TestGitLabCreateReleaseUknownHost` test added in this commit.

Solution
---
If we look at other error handling
91a8abb2e6/internal/client/gitlab.go (L106)
we can see that we check if the `resp` is nil as well before continuing.

Added tests for the following use cases:
- When there is an error and no response was returned.
- When there is a 403 or 404 error so we expect to create a release
  first.
- When there is an unknown error (not 404, 403) we just bail.
2021-09-10 16:35:42 -03:00
dependabot[bot]
91a8abb2e6
chore(deps): bump golang from 1.17.0-alpine to 1.17.1-alpine (#2470)
Bumps golang from 1.17.0-alpine to 1.17.1-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-09-10 10:14:11 -03:00
Steve Azzopardi
68ff8e996f
feat: support templates for scm urls (#2465)
Background
---
When a git repository is hosted in multiple GitLab instances the
`.goreleaser.yml` needs to take in consideration both APIs endpoints. At
the moment it defaults to GitLab.com and you can override it with
`gitlab_urls` however this forces you to only support 1 GitLab instance.

We need this for
https://gitlab.com/gitlab-com/gl-infra/infrastructure/-/issues/14122
where we have a tool that is developed on GitLab.com but then mirrored
to an internal GitLab instance since we need it to operate GitLab.com
even when it's down.

Solution
---
Support templates like `{{ .Env.CI_SERVER_URL }}` for the
`gitlab_urls`, `github_urls`  and `gitea_urls` so it can use environment
variables and the same `.goreleaser` file can be used in multiple SCM
instances.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-09-09 01:42:13 +00:00
Carlos Alexandro Becker
717051d70f
docs: fix wording
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-07 16:16:50 -03:00
Carlos Alexandro Becker
8afb5eafe5
feat: Add support for templating NFPM bindir (#2466)
* feat: Add support for templating NFPM bindir

Example: Allow software to be deployed in '/usr/lib64' directory on x86_64 arch
and in '/usr/lib' directory in i386

* test: invalid bindir template

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

* docs: bindir template

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

Co-authored-by: Rémi Ferrand <remi.ferrand@cc.in2p3.fr>
2021-09-07 15:43:06 -03:00
CrazyMax
7d22a32de9
docs: ghaction-import-gpg v4 (#2464)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-09-06 17:46:23 -03:00
Carlos Alexandro Becker
077d349147
fix: downgrade go-reddit to 2.0.0
closes #2463

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-06 14:25:35 -03:00
Carlos Alexandro Becker
38dd86a215
Merge remote-tracking branch 'origin/master' 2021-09-06 14:24:40 -03:00
Batuhan Apaydın
5a01a10f9b
fix: clean user information from remote url if it contains username and token (#2457) 2021-09-03 20:06:53 -03:00
Carlos Alexandro Becker
6c21e393f5
docs: simplify cosign
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-03 09:54:29 -03:00
Joe
1e40bbacfa
fix: link in example config to https (#2455) 2021-09-03 09:51:08 -03:00
Carlos Alexandro Becker
3f650b1863
docs: install
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-03 00:04:26 -03:00
Carlos Alexandro Becker
d5d494f001
docs: update check instructions (#2437)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-02 23:58:18 -03:00
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