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

1055 Commits

Author SHA1 Message Date
Pedro López Mareque
160d97af40
fix: check if builds.dir is a directory (#2587)
* fix: validate builds.main

* fix: pr comments
2021-10-16 21:42:53 -03:00
Carlos A Becker
870dc146fa
fix: universal binary should be in dist/$x_darwin_all dir
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-14 22:33:52 -03:00
Carlos Alexandro Becker
ae6814466e
feat(deps): upgrade go-github (#2581)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-14 09:32:52 -03:00
Carlos A Becker
b5aefe6571
fix: improve logging
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-13 22:34:55 -03:00
Carlos A Becker
d5638991c8
fix: gofish with multiple binaries
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-13 00:10:07 -03:00
Carlos A Becker
d6724cf624
fix: gofish on windows
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-13 00:04:49 -03:00
Carlos A Becker
139bdd07ea
fix: copy symlinks
closes #2496

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 15:03:46 -03:00
Carlos Alexandro Becker
3c98e86620
feat: create macOS Universal binaries (#2572)
* feat: artifacts.Remove

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

* feat: fatbinary

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

* feat: run fatbinary on pipeline

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

* feat: make archives work with fat binaries

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

* feat: make brew work with fat binaries

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

* feat: make gofish work with fat binaries

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

* test: archive binary fatbin

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

* docs: fat binaries

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

* test: fix on linux

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

* feat(ci): enable fat bins on goreleaser itself

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

* refactor: rename to universal binaries

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

* fix: config

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

* fix: rename prop

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-12 14:55:43 -03:00
Erik Weber
33d857e347
feat: add template support for homebrew skip_upload (#2562) 2021-10-10 14:46:52 -03:00
Drew Stinnett
03b6805715
feat: Adding gitlab api changelog (#2567)
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-10-10 10:52:46 -03:00
Carlos Alexandro Becker
a393262eb4
feat: support multiple binaries on gofish (#2569)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-10 10:52:25 -03:00
Carlos A Becker
b11f4e5204
test: fix test
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-10 10:24:20 -03:00
Carlos Alexandro Becker
1890e67fda
feat: improve brew.install guessing (#2541)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-10-08 21:25:53 -03:00
Patrick Hahn
e64b2cd8da
feat: Allow release notes to be used in template strings (#2566)
When using the announce feature, you might want to inform your users about the features and changes that this release brings. This change allows you to use {{ .ReleaseNotes }} in any template string, after the changelog pipeline step has been executed.
2021-10-07 14:19:19 -03:00
Pedro López Mareque
d32454e279
Add telegram announcer (#2563)
* feat: add telegram announcer

* chore: remove hooks and use the Send method of the bot API

* chore: add docs and default config

* chore: add docs and default config

* chore: fix tabs

* chore: add docs

* chore: fix pr comments

* chore: fix pr comments

* chore: fix pr comments

* chore: add missing links in docs
2021-10-07 13:01:31 +00:00
Carlos A Becker
1f774d5d6a
fix: changelog filters and sort when using github
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-06 01:15:31 -03:00
Carlos A Becker
d7e1bcc1f0
fix: armv7 on linux is usually armv7l
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-05 23:15:21 -03:00
Carlos A Becker
18ca16d547
test: gitlab download url template
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-05 22:06:20 -03:00
Carlos A Becker
d7e5ea5abf
test: use mock client
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-05 20:53:17 -03:00
Carlos A Becker
ced5347388
refactor: improve scmChangeloger
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-04 23:35:28 -03:00
Carlos Alexandro Becker
16f1304498
test: speed up minio tests (#2550)
* test: speed up minio tests

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

* test: speed up minio tests

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

* test: speed up minio tests

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

* fix: rm unused param

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

* fix: use not-so-common contianer name

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

* test: speed

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

* test: inc coverage

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

* test: inc coverage

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-04 10:14:51 -03:00
Carlos Alexandro Becker
89e5a4ebf1
feat: changelog from github (#2548)
* feat: changelog from github

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

* refactor: unifying client mocks

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

* refactor: unifying client mocks

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

* fix: mocks

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

* test: added tests

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

* fix: remove unused code

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

* test: added more

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

* fix: testdata

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

* fix: fmt

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

* test: fix

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

* test: fix

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

* docs: improve docs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-04 09:32:30 -03:00
Carlos Alexandro Becker
c739724f12
refactor: unifying client mocks (#2549)
* refactor: unifying client mocks

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

* refactor: unifying client mocks

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-03 13:24:20 -03:00
Drew Stinnett
e0315ff4c4
feat: allow default branch to be used in CreateFile (#2539)
* feat: allow default branch to be used in gitlab

* feat: add func to get default branch

* fix: matching branch args

* feat: branch customization

* fix: fixing dummyclient naming

* refactor: remove createbranch

* feat: Adding gitlab branch customization

* feat: testing for github and gitea defaultbranch

* fix: remove dummy debug message

* fix: removing note about gitea not being supported

* feat: allow default branch to be used in gitlab

* docs: links updat

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

* chore: delete kodiak.yml

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

* feat: add func to get default branch

* fix: matching branch args

* feat: branch customization

* fix: docs: Missing mattermost docs on website (#2543)

* docs: update CircleCI example (#2545)

* fix: fixing dummyclient naming

* docs: some little fixes on the webpage (#2547)

* feat: some little fixes on the webpage

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

* Update www/docs/overrides/home.html

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

* refactor: remove unused not impl error (#2540)

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

* feat: add template support for homebrew tap owner (#2544)

* feat: add template support for homebrew tap name

refs #2544

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

* refactor: remove createbranch

* feat: Adding gitlab branch customization

* feat: testing for github and gitea defaultbranch

* fix: remove dummy debug message

* fix: removing note about gitea not being supported

Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Co-authored-by: Engin Diri <engin.diri@mail.schwarz>
Co-authored-by: Ricardo N Feliciano <FelicianoTech@gmail.com>
Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Erik Weber <terbolous@gmail.com>
2021-10-03 11:22:26 -03:00
Carlos Alexandro Becker
b50334f485
feat: add template support for homebrew tap name
refs #2544

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-10-02 12:53:06 -03:00
Erik Weber
20e14dd204
feat: add template support for homebrew tap owner (#2544) 2021-10-02 12:46:27 -03:00
Carlos Alexandro Becker
0d4430269b
refactor: remove unused not impl error (#2540)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-10-02 12:39:52 -03:00
Carlos Alexandro Becker
e2f7c83064
feat: allow to skip announcers (#2528)
* feat: allow to skip announcers

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

* docs: announce.skip

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-28 22:33:04 -03:00
Carlos Alexandro Becker
395a148300
refactor: improve brew templates (#2530)
* refactor: improve brew templates

based on #2509

Co-authored-by: Engin Diri <engin.diri@mail.schwarz>
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: improve templates a bit

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

* refactor: improve check

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

* refactor: improve less

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

* refactor: improve counts

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

Co-authored-by: Engin Diri <engin.diri@mail.schwarz>
2021-09-28 21:34:35 -03:00
Carlos Tadeu Panato Junior
519a4f67c5
feat: announce: mattermost (#2536)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-09-28 20:18:35 -03:00
Engin Diri
d2a63c1093
feat: publish: GoFish integration (#2509)
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
2021-09-28 20:16:39 -03:00
Carlos Alexandro Becker
c7580bf49f
fix: add a debug log on git config
refs #2537

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-28 10:49:59 -03:00
Carlos Alexandro Becker
0c51988ff1
fix: add a debug log on git config
refs #2537

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-28 10:48:49 -03:00
Carlos Alexandro Becker
2b646008f4
fix: add a debug log on git config
refs #2537

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-28 10:45:57 -03:00
Carlos Alexandro Becker
7b44f8da7f
test: add more url tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-28 10:43:54 -03:00
Engin Diri
8881328041
fix: regression on nil pointer check (#2533)
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
2021-09-28 09:11:04 -03:00
Drew Stinnett
608d48ab30
fix: bug in handling gitlab-ci style urls (#2527) 2021-09-28 00:08:22 +00:00
Carlos Alexandro Becker
c90f1085f2
fix: do not skip any defaults (#2521)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-27 10:14:04 -03:00
Carlos Alexandro Becker
29016cb0e3
fix: brew/scoop panic (#2515) 2021-09-27 08:13:56 -03:00
Carlos Alexandro Becker
833db79bda
feat: removes deprecated non-semver allowance (#2503)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-23 00:39:28 -03:00
Steve Azzopardi
421b92f375
feat: support subgroups in GitLab (#2474)
Background
---
GitLab supports
[subgroups](https://docs.gitlab.com/ee/user/group/subgroups/) so a
repository can look something like
`gitlab.com/top-level-group/sub-group/repository` for example https://gitlab.com/gitlab-com/gl-infra/jsonnet-tool.

At the moment this detection doens't work out of the box and requires
the user to set the
[`owner`](8b0781e576/.goreleaser.yml (L32-35))

Solution
---
Instead of dropping off the nested sub-groups automatically add them.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-09-23 00:34:14 -03:00
Carlos Alexandro Becker
f7c865c4d9
refactor: split go mod into 2 pipes (#2502)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 22:25:26 -03:00
Carlos Alexandro Becker
28ef87b4b0
test: another try fixing minio tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 16:23:28 -03:00
Carlos Alexandro Becker
7c8c942b36
chore: fix wording
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 01:21:33 -03:00
Carlos Alexandro Becker
722343125a
test: remove bucket after test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 01:19:37 -03:00
Carlos Alexandro Becker
ad7df518b6
test: fix minio tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-22 01:01:32 -03:00
Carlos Alexandro Becker
72053773d7
test: fix broken test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-21 23:29:54 -03:00
Carlos Alexandro Becker
a8a3061fe9
fix: debug skip
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-18 10:25:28 -03:00
Carlos Alexandro Becker
61bead8989
feat: improve output and pipe skipping (#2480)
* refactor: improve middleware

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

* fix: upload tests

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

* fix: twitter tests

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

* fix: source tests

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

* fix: snapshot tests

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

* test: improved some tests

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

* fix: snapcraft skip

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

* fix: skip slack

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

* fix: skip sign

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

* fix: skip scoop

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

* fix: skip reddit

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

* fix: skip discord

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

* fix: skip publish

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

* fix: skip nfpm

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

* fix: skip milestone

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

* fix: skip custompublishers

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

* fix: skip checksums

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

* fix: skip changelog

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

* fix: skip brew

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

* fix: skip blob

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

* fix: skip before

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

* fix: skip artifactory

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

* fix: skip announce

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

* fix: skip defaults

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

* fix: cmds

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

* fix: skip docker

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

* chore: todo

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

* fix: go.mod

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

* fix: skip release

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

* fix: remove old skip pipe errors

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

* fix: skip teams

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

* fix: skip brew

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

* fix/test: skip smtp

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

* fix: lint issues

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

* fix: skip docker

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

* fix: skip brew and scoop

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

* fix: skip docker

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

* fix: skip http/artifactory

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

* test: increase coverage

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

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-18 10:21:29 -03:00
Erkan Zileli
35cb87e66a
fix(buildpacks): add if check when copying Dockerfile (#2493)
Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com>

Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com>
2021-09-16 22:18:44 +00:00
Carlos Alexandro Becker
820194cc92
docs: typo
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-16 14:32:36 -03:00
Batuhan Apaydın
4fb4ee67af
feat: Allow to specify the git remote name (#2486)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-with: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-with: Furkan Türkal <furkan.turkal@trendyol.com>
2021-09-15 19:12:45 +00:00
Batuhan Apaydın
afad409c76
feat: add SMTP support to the announces (#2485)
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-with: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-with: Furkan Turkal <furkan.turkal@trendyol.com>
2021-09-15 18:38:58 +00: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
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
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
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
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
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
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
Joe
1e40bbacfa
fix: link in example config to https (#2455) 2021-09-03 09:51:08 -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
a9239e875d
chore : fmt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 16:47:53 -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
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
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
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
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
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
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
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
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
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
27139e251a
fix: better custom publisher logs
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-26 09:04:50 -03:00
Carlos Alexandro Becker
1dd2ad1ae6
fix: return an err with stdout/err when a command failed (#2363)
* fix: return an err with stdout/err when a command failed

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

* chore: fmt

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

* test: fixes

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-24 21:32:04 -03:00
Carlos Alexandro Becker
2a304f5932
chore: improve pre-commit
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-24 21:21:22 -03:00
Carlos Alexandro Becker
c63d704ce6
test: fix
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-24 21:20:08 -03:00
Carlos Alexandro Becker
f37c045052
fix: copying file on docker pkg instead of hard linking (#2362)
* refactor: move copyfile to gio package

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

* refactor: copying file on docker pkg instead of hard linking

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

* chore: fmt

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

* test: fixex

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

* fix: one todo

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

* test: copy with mode

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

* chore: fmt

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

* fix: errors

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-24 19:59:43 -03:00
Carlos Alexandro Becker
b176b1ff80
feat: inc parts of semver, change snapshot default name (#2358) 2021-07-24 10:13:05 -03:00
Guilhem Lettron
6ecddbd7e9
feat(snapcraft): manage channel upload (#2361)
By default, snap store manage "edge", "beta", "candidate" and "stable".
Default to all this channels when package is in grade stable. But only on
"edge" and "beta" for grade "devel".

Signed-off-by: Guilhem Lettron <guilhem@barpilot.io>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-07-24 00:23:59 -03:00
Carlos Alexandro Becker
7f40922ea2
chore: gofumpt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-23 23:54:13 -03:00
Carlos Alexandro Becker
bf19dc1079
feat: moving some cmd logs to debug (#2359)
* feat: moving some cmd logs to debug

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

* feat: moving some cmd logs to debug

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-23 12:09:29 +01:00
Carlos Alexandro Becker
73641c71ac
feat: file mappings in archives (#2347)
* refactor: archive files

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

* feat: better archives

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

* feat: better archives

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

* fix: test todos

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

* fix: go mod tidy et al

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

* fix: improve docs and remove typoe 'licence' from defaults

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

* test: fixes

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

* fix: error string

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

* test: remove some logs

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

* test: use utc

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-21 22:09:02 -03:00
msvechla
5bcfa9042d
fix new gitlab releases throwing 404 due to API change #2334 (#2335) 2021-07-06 10:42:56 +02:00
Carlos A Becker
9333f80ad4
fix: improve docker logs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-04 01:52:59 +00:00
Carlos A Becker
d4a455fc5a
test: header/footer invalid templates
refs #2326

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-03 19:23:51 +00:00
zhouhaibing089
bffa7e5e2f
feat: template header and footer (#2326)
A continuation of #2267 - the header and footer in release configuration
can be templatized as well to support more use cases like attaching
published docker image information(without using docker pipe).
2021-07-03 13:42:54 -03:00
Carlos Alexandro Becker
91848616e3
refactor(docker): preparing for multiple backends (#2319)
* refactor(docker): preparing for multiple backends

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

* fix: remove pro test

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

* fix: merge issues

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

* fix: merge issues

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

* fix: merge issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 17:55:00 -03:00
Carlos A Becker
32a44ab928
fix(docker_manifest): improve logs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-27 00:29:26 +00:00
Carlos A Becker
52a64c7405
fix: fury upload
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 22:16:54 +00:00
Carlos Alexandro Becker
560938152a
feat: remove some nfpm deprecated options (#2315)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 16:52:18 -03:00
Carlos A Becker
afc7d85688
docs: improve gitlab projectid readme
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 19:46:16 +00:00
Jesse Quinn
92a4afb169
feat(gitlab): use project id (#2297)
* feat: use project id

* fix: missing slash.

* Added comment.

* Added a comment

Signed-off-by: Jesse Quinn <jesse.quinn@zpesystems.com>

* Added a comment

Signed-off-by: Jesse Quinn <me@jessequinn.info>

Co-authored-by: Jesse Quinn <jesse.quinn@zpesystems.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-06-26 16:44:24 -03:00
Carlos Alexandro Becker
1883ed4a73
refactor: preparing for other docker implementations (#2314)
* wip: podman

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

* refactor: preparing for other docker implementations

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

* refactor: preparing for other docker implementations

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

* fix: log

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

* fix: use buildx

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

* test: cover

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

* fix: lint

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 16:36:31 -03:00
Carlos A Becker
c5bcff2b00
feat: scoop formula path
closes #2310

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 17:14:42 +00:00
Carlos A Becker
a0dd45592e
fix: packaging with build.binary with subdir
Saving again the full path of the binary in the artifact name, if needed, we can filepath.Base it and get the name only.

refs #2280
closes #2311

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-26 16:57:10 +00:00
Olivier Poitrey
3db788bba5
feat(nfpm): add support for APK pre/post upgrade scripts (#2308) 2021-06-20 14:34:09 -03:00
Carlos Alexandro Becker
e437344718
feat: docker_manifests.skip_push (#2302)
* feat: docker_manifests.skip_push

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

* fix: lint

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

* test: fix

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-16 23:00:08 -03:00
Carlos Alexandro Becker
10f3021afe
fix: empty build.tags and build.ldflags (#2301)
* refactor: build go build cmd line

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

* fix: build.tags

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

* refactor: improve test code

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

* refactor: improve test code

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-16 20:41:52 -03:00
Carlos A Becker
d676964938
test: fix gomod test
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-16 03:17:36 +00:00
Carlos Alexandro Becker
b53dbb89d0
feat: remove :latest imgs from release notes (#2287)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-08 14:11:27 +00:00
Carlos Alexandro Becker
c49c771220
feat: builds. no_unique_dist_dir (#2280)
* Implemented build option output_path

* feat: output path renamed to dist_path

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

* fix: CR

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

* fix: binary name

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

Co-authored-by: Thomas Meckel <tmeckel@users.noreply.github.com>
2021-06-06 19:44:24 -03:00
Carlos Alexandro Becker
bad1132e78
feat: --auto-snapshot on dirty git tree (#2286)
* feat: --auto-snapshot

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

* docs: fix

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

* fix: workflow

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-04 23:09:12 -03:00
Carlos A Becker
39e5792993
fix: env templates
closes #2281

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-04 18:11:29 +00:00
Carlos A Becker
e25b6bb313
test: docker image template test cases
for #2281

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-04 00:12:47 +00:00
Carlos Alexandro Becker
aa518027b4
fix(publishers): inherit some system variables (#2277) 2021-06-02 15:05:54 -03:00
Carlos A Becker
752d8653ff
fix: move log back to debug
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-06-01 10:58:02 +00:00
Carlos Alexandro Becker
f4e79655a7
feat(nfpm): template homepage and description (#2272)
* feat(nfpm): template homepage and description

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

* chore: fumpt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 21:59:46 -03:00
Carlos Alexandro Becker
2375c93359
feat: build tags (#2268)
* feat: build tags

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

* fix: quotes

Co-authored-by: Lukas Malkmus <lukasmalkmus@users.noreply.github.com>

Co-authored-by: Lukas Malkmus <lukasmalkmus@users.noreply.github.com>
2021-05-31 13:47:39 -03:00
Carlos A Becker
b28b203af4
fix(brew): depends_on arch
closes #2270

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 16:44:58 +00:00
Carlos Alexandro Becker
3ca9e6d4dc
feat(nfpm): allow to template contents.dst (#2269)
* feat(nfpm): allow to template contents.dst

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

* fix: revert unwanted change

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

* fix: gofumpt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 00:28:11 -03:00
Carlos A Becker
ce7d3b0e89
test: default values for envs
refs #1795

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 01:53:40 +00:00
Carlos A Becker
64c73d7eba
fix(gitea): do not overwrite existing release notes
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-31 01:25:29 +00:00
Carlos Alexandro Becker
4d0c0d2072
feat: release header/footer (#2267)
* feat: release header/footer

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

* feat: release header/footer

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

* refactor: using the golden library all over

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

* fix: lint

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

* fix: brew arm tests

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

* fix: use footer

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-30 21:53:40 -03:00
Carlos Alexandro Becker
e2c93f5f39
fix: improve brew formula (#2261)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-30 14:25:25 -03:00
Carlos A Becker
3843761902
fix(snap): do not fail with "NEEDS REVIEW" message
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-26 14:39:11 +00:00
Carlos Alexandro Becker
2e376ef378
chore(lint): enable revive
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-05-25 16:49:49 -03:00
Carlos Alexandro Becker
a2d7ccad2f
feat: --skip-announce (#2249) 2021-05-25 00:45:59 -03:00
Carlos Alexandro Becker
f0f7f43486
feat: announce to twitter (#2248)
Co-authored-by: Leon Wright <wrightleo@jncb.com>
2021-05-25 00:19:06 -03:00
Carlos Alexandro Becker
9fbaf5e3e1
feat: env template support (#2246) 2021-05-24 23:23:59 -03:00
Evan Older
d521343b06
feat: Scoop pipe - Write the manifest before skips, like Brew pipe. (#2241)
* feat: Scoop pipe - Write the manifest before skips, like Brew pipe.

feat: Scoop pipe - Added tests and fixed the write path of the manifest.

* Update scoop.go

Co-authored-by: eolder <eolder@rajant.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-05-24 17:30:31 +00:00
Carlos Alexandro Becker
9913fe7db6
feat: template release notes (#2242)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-21 21:07:47 -03:00
Carlos Alexandro Becker
2d136c4c90
feat: allow to template signs[].signature (#2236) 2021-05-21 14:49:07 -03:00
Carlos Alexandro Becker
7cfa2c4777
feat: fine grained sign (#2235) 2021-05-21 11:16:15 -03:00
Carlos A Becker
00b76540ca
fix(snap): ignore human review error msg
closes #2194

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-21 02:53:22 +00:00
Carlos Alexandro Becker
d08b767975
fix: revert "fix: skip releasing to brew when skipping publishing" (#2233)
This reverts commit c85472a20f.
2021-05-20 23:24:44 -03:00
Marc Auberer
8db935ff15
feat: add support for name templates to NFPM contents (#2229) 2021-05-20 14:21:48 -03:00
Matt Palmer
bf4359017b
feat: Use GitLab Direct Asset Links (#2219)
* feat: Use GitLab Direct Asset Links

Implement the use of Direct Asset Links when uploading artifacts to a GitLab release

* fix: Remove ArtifactUploadHash

As GitLab support for direct asset linking exists, remove ArtifactUploadHash due to it no longer being required

* test: fix unit tests for gitlab urls

* fix: Use artifact name during GitLab upload

file.Name() included the path to the file, which isn't needed and breaks other areas such as homebrew releases

* docs: Require GitLab version v12.9+

Due to newly introduced dependency on direct asset linking
2021-05-17 17:33:04 +00:00
Kareem March
a9ce8f89d4
fix: allow underscores in formula name (#2205)
* fix: allow underscores in formula name

I was trying to create two formulas per release. One signifying the latest and
another with the version explicitly: formula.rb and formula@v0.0.0.rb

The filenames are fine but the formula name for the explicit version
was created as FormulaATv0.0.0 which isn't valid Ruby.

Looking at the function history I couldn't find why underscores were being replaced
since underscores are valid for Ruby identifiers. I opted to replace dots in a formula with
underscores

- 1399a39603
- https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident

* test: add test for version in formula name

I think underscores are removed to make the Formula name cleaner

* test: re-add old test
2021-05-11 04:50:17 +00:00
Franky W
c85472a20f
fix: skip releasing to brew when skipping publishing (#2193)
This fixes an issues that causes builds to still try to release to brew
even though the `--skip-publish` flag was passed
2021-05-02 14:37:15 +00:00
Cristian Ciutea
a86a9956de
feat: add %pretrans %posttrans scriptlets (#2191)
* tmp changed nfpm dep to fork

* added rpm pretrans and posttrans scriptlets

* cleanup gomod

* docs: added pretrans and posttrans examples in nfpm.md

* added test for rpm pretrans and posttrans scriptlets
2021-04-28 13:01:03 +00:00
Carlos Alexandro Becker
860b4a8f81
chore: gofumpt & lint (#2190)
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 14:20:49 -03:00
Carlos Alexandro Becker
5866b9cb63
refactor: use os and io packages intead of ioutil when possible (#2189) 2021-04-25 13:00:51 -03:00
Carlos Becker
95bef19280 fix: env: close file
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 14:41:36 +00:00
Carlos Alexandro Becker
66117f3126
fix: several fd leaks (on tests) (#2187) 2021-04-25 11:34:40 -03:00
Carlos Alexandro Becker
f72e6399da
fix: fd leak on gomod pipe (#2188)
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 00:08:58 -03:00
Carlos Becker
48e8d83dad test: make test git init compatible with older git versions
Signed-off-by: Carlos Becker <caarlos0@gmail.com>
2021-04-25 02:21:54 +00:00
Trenton Broughton
e7f1ec0ea6
Do not send an empty discussion category name (#2182)
If the discussion category name is not specified in the config file, do not send it in to the request

This is a quick fix, and possibly it would be better to make `DiscussionCategoryName` a pointer.
2021-04-21 16:09:27 -03:00
Carlos Alexandro Becker
7a7a6f61ba
feat: create discussions from releases (#2177)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-21 13:43:59 -03:00
Carlos Alexandro Becker
f61d8c820c
fix: improve output a bit (#2174)
* fix: improve output a bit

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

* fix: improve output a bit

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

* fix: revert unwanted changes

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

* fix: skip err

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

* fix: tests

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

* fix: test

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

* chore: build

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-19 09:31:57 -03:00
Carlos Alexandro Becker
a9efdcab4a
fix: handle build.main being a go file when using gomod.proxy (#2173)
* fix: handle build.main being a go file when using gomod.proxy

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

* fix: guess pkg

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-04-19 11:54:55 +00:00
Tom Payne
e4e242f573
fix: ignore non-arm64/386 builds when building Scoop manifest (#2172) 2021-04-18 18:40:23 +00:00
Carlos Alexandro Becker
50117da6b5 fix: not using go mods on go 1.15
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-03 16:48:11 -03:00
Carlos Alexandro Becker
f6b1d1563a
fix: checksum header (#2154)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-01 09:03:11 -03:00
Carlos Alexandro Becker
8306b946d3
feat: initial proxy build support (#2129)
* feat: allow to use ModulePath on templates

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

* feat: initial proxy build support

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

* fix: build

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

* fix: main check

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

* fix: make it more flexible

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

* fix: small improvements

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

* fix: copy go.sum

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

* fix: root mod proxy

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

* fix: test

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

* fix: snapshots

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

* fix: lint

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

* fix: proxy main pkg

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

* fix: environment variables

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

* test: added some tests to go mod proxy feature

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

* fix: improve test

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

* fix: linte

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

* fix: goreleaser.yml

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

* fix: simplify tests

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

* test: test build

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

* fix: revert unwanted changes

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

* fix: allow to run when no mod.suym

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

* docs: example

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

* fix: not a go module on go 1.15

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

* docs: improve docs as per comments

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-30 21:06:25 -03:00
Carlos Alexandro Becker
90f2ba6925 fix: not a go module on go 1.15
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-30 20:07:58 -03:00
Carlos Alexandro Becker
aae0d53ac6
fix: build windows/arm (#2144)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-28 12:18:40 -03:00
Carlos Alexandro Becker
be4049e6d8 fix: move shallow clone error to warning
refs #2141 #2134

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-24 23:17:40 -03:00
Carlos Alexandro Becker
d04a7dad19
feat: fail on shallow clone (#2135)
* feat: fail on shallow clone

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

* fix: typo

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-24 08:55:13 -03:00
Carlos Alexandro Becker
9c66827d94 fix: check main error message
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-23 15:52:11 -03:00
Carlos Alexandro Becker
64ca73637a fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-23 09:29:06 -03:00
Carlos Alexandro Becker
251e4486ed
fix: wrong docker manifest on latest (#2130)
* fix: wrong docker manifest on latest

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

* fix: do not fail on missing manifest

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

* fix: simplify code a bit

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

* test: existing manifest

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

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 23:26:26 -03:00
Carlos Alexandro Becker
7378edc708
feat: allow to use ModulePath on templates (#2128)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 08:55:01 -03:00
Carlos Alexandro Becker
740ab6f2bd fix: remove replace
closes #2080

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-22 08:45:18 -03:00
Carlos Alexandro Becker
9f8750dcd2
fix: default gomips (#2124)
* fix: default gomips

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

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-20 15:17:19 -03:00
Carlos Alexandro Becker
12c7d38eb9
fix: properly translate mips arch (#2126)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-20 15:16:26 -03:00
Dinar Valeev
57a69dbe47
fix: docker manifest on draft release (#2119)
docker manifests exepcted to be pushed on draft.

- add test for such case

Signed-off-by: Dinar Valeev <dinar.valeev@absa.africa>
2021-03-19 13:24:50 +00:00
Kumbirai Tanekha
e0c3abae2e
feat: Add trimprefix function to template package (#2116)
This allows templates to trim prefixes. Particularly useful for removing the v prefix from versions
2021-03-17 14:19:32 -03:00
Peer Xu
c539ee0212
feat: support snapcraft layout (#2112)
* feat: add layout field to snapcraft pipe

* refactor: change bind-file to bind_file for snap description

* doc: update snapcraft layout document
2021-03-17 10:18:56 -03:00
Gastón Palomeque
2d3ec15bc6
fix: nfpm on windows (#2099) 2021-03-09 18:16:54 -03:00
Carlos Alexandro Becker
c9ffa78c25
feat: package name on nfpm file name template (#2097)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-03-09 10:57:43 +00:00
Carlos Alexandro Becker
5e23177a4c
fix(ci): go mod tidy (#2090)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-02 21:29:31 -03:00
Carlos Alexandro Becker
4f7968316f
feat(ci): run lint on actions (#2087)
* feat: lint on specific ci step

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

* fix: run on push

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

* docs: contributing

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

* docs: contributing

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

* fix: action

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

* fix: lint issues

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

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:45:06 -03:00
Carlos Alexandro Becker
be93544e5c
feat: update fileglob and nfpm (#2085)
* feat: update fileglob

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

* feat: upgrade nfpm too

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:19:13 -03:00
Carlos Alexandro Becker
25affdd891
fix: log semver errors when snapshot (#2084)
* fix: log semver errors when snapshot

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

* fix: deprecate notice

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:18:57 -03:00
Carlos Alexandro Becker
5d7f36eadb
test: use main as git branch for tests (#2083)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-03-01 14:18:26 -03:00
Carlos Alexandro Becker
5a1564bcab fix: use deprecation warnings for go 1.15
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-18 14:54:04 -03:00
Carlos Alexandro Becker
784560c06e
fix: try not to break if run on go1.15 (#2069)
* fix: try not to break if run on go1.15

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

* fix: go binary needs to be set

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

* chore: gofumpt

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

* fix: move to log

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-18 17:29:20 +00:00
Carlos Alexandro Becker
43fcfafe7a
fix: brew: check cpu (#2062)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-17 08:14:50 +00:00
Carlos Alexandro Becker
6b26fe4106
feat: support go 1.16 and apple silicon (#1956)
* feat: support apple silicon

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

* fix: test

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

* feat: go 1.16

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

* feat: go 1.16

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

* feat: go 1.16

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

* test: fix

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

* fix: test case

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

* Update .github/workflows/build.yml

Co-authored-by: Radek Simko <radek.simko@gmail.com>

* docs: go 1.16

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

Co-authored-by: Radek Simko <radek.simko@gmail.com>
2021-02-16 22:51:11 +00:00
Deepak S
89c220c4c6
fix: makes username and password optional for http uploads (#2057)
* fix: makes username and password optional for http uploads

* update upload doc
2021-02-12 19:01:06 +00:00
Carlos Alexandro Becker
ae85009993 chore(deps): bump github.com/goreleaser/nfpm/v2 from 2.2.2 to 2.2.3
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-10 15:43:17 -03:00
Ani Channarasappa
a816d969c9
fix: update snapcraft command from 'push' to 'upload' (#2051)
as per deprecation message
2021-02-09 01:40:01 +00:00
Carlos Alexandro Becker
78b0097dc2
fix: brew default install when using templates in the binary name (#2030)
* fix: brew default install when using templates in the binary name

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>

* fix: remove unused func

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

* fix: remove unused func

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-21 21:01:33 +00:00
dependabot[bot]
ba82f43c5f
chore(deps): bump github.com/golangci/golangci-lint from 1.34.1 to 1.35.2 (#2011)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.34.1 to 1.35.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.34.1...v1.35.2)

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

* fix: lint

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-15 12:54:31 +00:00
Carlos Alexandro Becker
ef5be03d23
feat: compile to riscv64 (#2016)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-13 17:28:53 +00:00
Sylvia Moss
6d9abe6299
feat: add Os and Arch template options to the Binary name field (#1936)
* allow Os and Arch tmpl variables in binary name

* update documentation

* fix docs
2021-01-12 20:27:46 +00:00
Sune Keller
2213b073ac
feat(http): resolve custom header template expressions (#2005)
* feat(http): resolve custom header template expressions

Signed-off-by: Sune Keller <absukl@almbrand.dk>

* test: catch invalid templates in custom headers

Signed-off-by: Sune Keller <absukl@almbrand.dk>

* test: validate header template resolution

Signed-off-by: Sune Keller <absukl@almbrand.dk>
2021-01-08 11:35:12 +00:00
Carlos Alexandro Becker
e8ea231122
feat: allow to use nfpm packages in the docker pipe (#2003)
* feat: copy nfpms to docker image too

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

* test: wip

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

* fix: logs

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

* test: fixes

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

* test: improving

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

* docs: deprecations and docker improvements

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

* fix: revert .goreleaser.yml changes

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

* test: fix

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

* docs: fix syntax

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

* docs: fixed deprecation warnings

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

* test: fix

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

* test: coverage

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

* test: add one more test case

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>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-07 19:21:12 +00:00
Sune Keller
f934314be3
feat(http): support custom headers in http upload (#2002)
Signed-off-by: Sune Keller <absukl@almbrand.dk>
2021-01-07 17:15:53 +00:00
Carlos Alexandro Becker
2edebf0029
feat: add arm64 to the default goarch list (#1999)
* feat: add arm64 to the default goarch list

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-07 12:25:52 +00:00
Carlos Alexandro Becker
873f35a2c2
refactor: use t instead of tt (#2000)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-07 09:15:32 -03:00
Justin Hammond
49c17befcf
fix: Adds comments to formula template to conform to 'brew audit --strict --online' (#2001)
* fix: Adds comments to formula template to conform to 'brew audit'

* Adding expected output to formula testdata files
2021-01-07 09:14:50 -03:00
Ryan Currah
ac0cc32142
feat(nfpm): wire up two additional nfpm properties (#1995)
The properties Section and Priority are currently ommited from the goreleaser config. This commit wires them up so we can use them to build our packages.
2021-01-06 01:04:46 +00:00
Carlos Alexandro Becker
11e3afe1c8 feat: remove deprecated options (brew.github & brew.gitlab)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-04 14:24:25 -03:00
Carlos Alexandro Becker
5a0f0f6cfa
fix: load (#1990)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-04 14:05:18 -03:00
Carlos Alexandro Becker
05d523d93a test: build with buildx
refs 0097bdc52d
refs #1989

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-04 12:00:07 -03:00
Carlos Alexandro Becker
0097bdc52d feat: use docker buildx build
refs #1989

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-04 11:27:27 -03:00
Carlos Alexandro Becker
ea83297e73 fix: more logs for docker manifest
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-04 10:37:04 -03:00
Carlos Alexandro Becker
1c76860e93 fix: lint issue
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-31 14:25:30 -03:00
Carlos Alexandro Becker
8e45550e50 test: improve assertion
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-30 09:26:13 -03:00
Carlos Alexandro Becker
1195844e47 fix: nfpm not including extra files
closes #1980

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-30 09:23:14 -03:00
Carlos Alexandro Becker
c613dd9c95
fix: manifest with no parallelism (#1978)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-29 15:17:23 -03:00
dependabot[bot]
1b0b6be8c5
chore(deps): bump github.com/golangci/golangci-lint from 1.33.0 to 1.34.1 (#1975)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.33.0 to 1.34.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.33.0...v1.34.1)

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

* fix: lint issues

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

* fix: go mod tidy

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-29 15:40:21 +00:00
Carlos Alexandro Becker
47f1a448dd test: fix unstable test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-29 11:57:56 -03:00
Carlos Alexandro Becker
d502e59479
fix(docker): handle empty docker images (#1972)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-28 17:36:46 -03:00
Carlos Alexandro Becker
20bdf9def1
feat: upgrade nfpm (#1968)
* feat: upgrade nfpm

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

* feat: upgrade nfpm

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

* fix: test

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

* docs: nfpm

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-28 17:40:23 +00:00
Carlos Alexandro Becker
2615b6cd4f
feat: ugprade nfpm (#1964)
* feat: ugprade nfpm

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

* feat: ugprade nfpm

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

* fix: fmt

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

* fix: tests

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

* fix: do not modify list

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-24 02:07:48 +00:00
CrazyMax
f10873d919
Revert "feat: allow automatic snapshot on dirty state (#1958)" (#1962)
This reverts commit d8a0f253d1.
2020-12-22 11:04:51 -03:00
CrazyMax
d8a0f253d1
feat: allow automatic snapshot on dirty state (#1958)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-22 10:41:08 -03:00
Rico
9423da1b60
docs: unify naming of .goreleaser.yml file (#1955)
Since multiple filenames for the config file are allowed, we find several different usages of the file names in the docs:
- .goreleaser.yml
- goreleaser.yml
- .goreleaser.yaml
- goreleaser.yaml

I find that using a single filename in the docs is more intuitive for new users. Hence I replaced all occurrences of the filename with `.goreleaser.yml`.
2020-12-20 10:56:00 -03:00
Carlos Alexandro Becker
a6946bbd17 chore: fix import
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-14 08:51:14 -03:00
Rene Zbinden
984b24a93f
fix: nfpm failed: signing error: armored detach sign: reading PGP key file: open <path to gpg file> when --skip-sign is true (#1944) 2020-12-14 08:50:26 -03:00
Carlos Alexandro Becker
27c7c8d7c8 refactor(test): t.TempDir
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-13 10:33:08 -03:00
Carlos Alexandro Becker
92f52ac406
refactor(test): use testing.TB Cleanup and Tempdir (#1945)
* refactor: use t.Cleanup instead of defer

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

* refactor: use t.Cleanup instead of defer

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

* refactor: use t.Cleanup instead of defer

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

* refactor: use t.Cleanup instead of defer

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

* fix: filepath

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-12 13:27:35 -03:00
Joris Coenen
e3f8178b35
feat: IDs filter for Checksums pipe (#1805)
* Add IDs filter to checksums pipe

This allows specific artifacts to be excluded from the checksums file.

The reason for introducing this, is the requirement of Terraform
Registry releases to only contain the prescribed archives in the
checksums file. If the file contains more, the release is not accepted
by the Terraform Registry.

* Add test case for IDs filter of checksums pipe

* Document IDs filter of checksum pipe

* Always apply type filter for artifacts

This is more in line with how the other ID-filters work.
2020-12-09 08:38:56 -03:00
Suz Hinton
c10e597953
feat: add support for scripts in Scoop manifests (#1931)
* feat: add support for scripts in Scoop manifests

* fix: remove hidden newline from scoop golden file
2020-12-05 12:16:32 -03:00
Carlos Alexandro Becker
264dedc12a
chore: added todo for go 1.16 migration 2020-12-03 18:16:45 -03:00
Carlos Alexandro Becker
a69839327f chore: fmt
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-30 21:53:47 -03:00
Carlos Alexandro Becker
8fa7c6977a feat: add only the manifests to the release notes
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-30 21:53:36 -03:00
Carlos Alexandro Becker
397ff3ba84
feat: add docker manifests to release notes (#1925)
* feat: add docker manifests to release notes

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

* chore: fmt

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

* refactor: improve code a bit

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

* test: cover artifact.Type.String() with tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-29 14:33:31 -03:00
Carlos Alexandro Becker
b067fdc894 chore: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-28 16:34:33 -03:00
Carlos Alexandro Becker
e337fc9ca0
feat: multi-arch docker images (#1923)
* feat: multi-arch docker images

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

* feat: split files

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

* docs: manifest

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

* refactor: split files

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

* test: added some

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

* docs: flags

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

* fix: fmt

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

* fix: diff

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

* ci: enable experimental

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

* ci: multi-arch goreleaser images

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-28 16:26:37 -03:00
Carlos Alexandro Becker
c011943613 feat: nfpm symlinks
closes #1861

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-26 23:45:17 -03:00
dependabot[bot]
7ab2470dae
chore(deps): bump github.com/golangci/golangci-lint from 1.32.2 to 1.33.0 (#1912)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.32.2 to 1.33.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.32.2...v1.33.0)

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

* fix: lint

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-27 02:16:08 +00:00
Lukas Malkmus
f35534d9d7
feat: make generated brew formulas brew audit compatible (#1908) (#1911)
* feat: add license as first class config key to homebrew (#1908)

* feat: remove trailing whitespace from generated brew formula (#1908)
2020-11-26 10:06:47 -03:00
Christian Muehlhaeuser
761c56a805
fix: ensure changelog ends on a newline (#1919) 2020-11-24 23:39:59 -03:00
Christian Muehlhaeuser
56f34935d2
fix: don't append empty header/footer to changelog (#1918) 2020-11-25 00:09:34 +00:00
Kévin Dunglas
a6c4b7e862
fix: prevent error if "dockerfile" isn't set (#1917)
* fix: prevent error if "dockerfile" isn't set

* test: add test for #1917
2020-11-24 19:41:40 -03:00
6543
89105d63ac
feat: upload brew tap to gitea (#1547)
* implement for brew and scoop support for Gitea-hosted repos

* fix test

* add ReleaseURLTemplate support for gitea

* Add TestGiteaReleaseURLTemplate

* fix api to download url conversion

* switch test gitea instance to gitea.com

* fix defaults

* add test for defaults.go (GiteaURLs)

* add option into docs
2020-11-21 10:36:29 -03:00
Ben Kochie
f417d7783d
feat: add support for git branch in templates (#1906)
Add a `.Branch` field to the text templates populated by the current git
branch.

Signed-off-by: Ben Kochie <superq@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-18 18:50:31 +00:00
Carlos Alexandro Becker
b4f154d81f
fix: improving URLs on linuxbrew (#1900)
* fix: improving URLs on linuxbrew

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

* refactor: rename template fields

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

* fix(tests): adapts brew test formulas and docs

* Revert "fix(tests): adapts brew test formulas and docs"

This reverts commit 51dd8cf6c7.

* fix: template

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

* docs: fixed example

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

Co-authored-by: Manuel Vogel <mavogel@posteo.de>
2020-11-16 09:16:50 -03:00
Carlos Alexandro Becker
40aa04fe71
fix: dont fail if there is a .go directory (#1899)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-13 13:18:26 +00:00
Carlos Alexandro Becker
c67a646d26 test: fix nfpm test
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-12 10:48:49 -03:00
Carlos Alexandro Becker
671c7ef96e
feat: nfpm rpm.summary and nfpm.ghost_files (#1892)
* feat: nfpm rpm.summary and nfpm.ghost_files

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

* fix: fmt

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-12 10:46:55 -03:00
Carlos Alexandro Becker
4a6693fb72
feat: replace zglob with fileglob (#1889)
* fix: replace zglob with gobwas/glob

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

* fix: added missing file

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

* test: fixed wrong assertions

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

* fix: use fileglob

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

* feat: update fileglob

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

* fix: update fileglob

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

* fix: tests

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

* fix: test errors

* fix: empty file

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

* fix: update fileglob

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-10 11:20:55 -03:00
dependabot[bot]
27aa6871cb
chore(deps): bump github.com/golangci/golangci-lint from 1.31.0 to 1.32.2 (#1882)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.31.0 to 1.32.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.31.0...v1.32.2)

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

* fix: lint issues

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

* refactor: lint issues

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-10 11:15:03 -03:00
Carlos Alexandro Becker
c125fe3166 refactor: simplify for
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-09 19:16:06 -03:00
Carlos Alexandro Becker
9935b87100
feat: support replaces on nfpm (#1888)
* feat: support replaces on nfpm

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

* Update www/docs/customization/nfpm.md
2020-11-06 15:17:08 -03:00
Jonathan Lloyd
17e56747cc
feat: add packager-specific nfpm config (#1849)
* feat: Add deb packager-specific nfpm config (#1829)

* Use env vars containing nfpm ids for deb pgp passphrase

* Add docs for nfpm id in env var

* Custon -> Custom

* Switch test cases

* Forward RPM specific config to nfpm

* Document rpm-specific nfpm config

* Add APK-specific nfpm config

* Document apk-specific nfpm config

* avaiable -> available

* Add deb scripts templates to nfpm config
2020-11-05 18:47:55 -03:00
Carlos Alexandro Becker
f1049b94ef
feat: use proxy from environment (#1885)
* feat: use proxy from environment

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

* Update internal/client/github.go

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-05 08:16:25 +00:00
Carlos Alexandro Becker
032a105533
feat: validate goos, goarch, goarm and gomips (#1886)
* feat: validate goos, goarch, goarm and gomips

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

* fix: lint

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-05 07:20:14 +00:00
hackerman
f629ac74ed
fix: ensure uniqueness of brew's bin.install (#1876)
This patch ensures that there are no duplicate `bin.install` statements added to the homebrew formula. It resolves several upstream issues including https://github.com/ory/homebrew-kratos/issues/1 and others.

Closes https://github.com/ory/homebrew-kratos/issues/1
2020-10-28 10:35:45 -03:00
Jonas Bögle
cc3590adb8
tests: fix snapcraft tests (#1862) 2020-10-24 11:01:34 -03:00
Carlos Alexandro Becker
ff2495fbd1
feat: allow to disable archive binary count check (#1856)
closes #1855

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-10-13 17:57:08 -03:00
Carlos Alexandro Becker
229c8f54a5 fix: archive check when project is a library
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-10-11 13:00:42 -03:00
Carlos Alexandro Becker
4471154461
fix: break the release if archive has different binary counts for each platform (#1841)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-10-10 08:46:16 -03:00
Carlos Alexandro Becker
2d8823b8cf
feat: snap restart-condition (#1837)
* feat: snap restart-condition

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

* docs: restart-condition

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-10-06 10:59:53 -03:00
Carlos Alexandro Becker
979f8632b7
refactor: use require on all tests (#1839)
* refactor: use require on all tests

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

* refactor: use require on all tests

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-10-06 12:48:04 +00:00
Carlos Alexandro Becker
a6a4f29374
fix: use require on snapcraft tests (#1836)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-10-05 22:05:22 -03:00
Carlos Alexandro Becker
a1e8b8acc7 fix: merge issue
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-10-02 16:32:21 -03:00
Yoan Blanc
468387625b
feat: sign: extra option allowing stdin for commands (#1770)
* feat: extra option allowing stdin for the signing command

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>

* feat: allow stdin to be an empty string

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>

* fix: increase code coverage

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-10-02 16:26:37 -03:00
6543
1bb832a764
chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.1 (#1828)
* chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.1

* only set Context if not nil
2020-10-02 02:06:21 +00:00
Carlos Alexandro Becker
65ffbf1921
refactor: replace pkg/errors.Wrap with fmt.Errorf (#1812)
* refactor: remove pkg/errors

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

* refactor: remove pkg/errors

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-09-21 17:47:51 +00:00
Carlos Alexandro Becker
c28dab5b1d Revert "chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.0 (#1806)"
This reverts commit 96dd7c1990.
2020-09-21 14:23:33 -03:00
6543
96dd7c1990
chore(deps): bump code.gitea.io/sdk/gitea from v0.12.1 to v0.13.0 (#1806)
* gitea sdk v0.12.1 -> 0.13.0

* migrate

* adapt

* add version responce

* check err
2020-09-21 10:14:16 -03:00
Carlos Alexandro Becker
ac74de29de
chore(deps): update nfpm (#1813)
* chore(deps): update nfpm

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

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-09-21 10:13:03 -03:00
Carlos Alexandro Becker
2eb6ec200f
feat(brew): post_install (#1790)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: Grachev Mikhail <work@mgrachev.com>
2020-09-18 10:42:52 -03:00
nervo
f3f8b71373
fix: typo on warning log
The warning `optimistically guessing `brew[%d].installs`, double check` made me thinks of a hidden `installs` option (note the final "s"). Thanks god, it's just a typo, the existing and documented option is `install` (without the "s")
2020-09-16 15:43:37 -03:00
Carlos Alexandro Becker
01942ae60d
refactor: use git tag --points-at (#1796)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-09-08 10:11:59 -03:00
Carlos Alexandro Becker
28230b67f8
fix: do not default goos/goarch/goarm if targets is provided (#1789)
* fix: do not default goos/goarch/goarm if targets is provided

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

* test: fixed

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-09-06 11:39:52 -03:00
Carlos Alexandro Becker
88db1d0bcb
refactor(artifactory): we don't do anything with the response json (#1753)
* fix: ignore EOF on artifactory

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

* fix: dont even need to read that

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

* fix: remove artifactoryResponse

* refactor: remove artifactoryChecksums

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-09-06 11:03:17 -03:00
Andy Bursavich
3f85797df0
fix: typo in artifact checksum error message (#1785)
Signed-off-by: Andy Bursavich <abursavich@gmail.com>
2020-09-02 16:44:25 -03:00
Andy Bursavich
005b67dbed
fix: artifact string method switch statement (#1786)
Existing implementation seemed to rely on implicit case fallthrough, which doesn't exist in Go. Moving default return to default case helps catch this error in the future, as it will cause a "missing return" compile error.

Signed-off-by: Andy Bursavich <abursavich@gmail.com>
2020-09-02 16:44:02 -03:00
Chris Salch
cc3567cde9
feat: Add gobinary option to build configs (#1775)
* Possible implementation of #1235.

Adds the go_binary config option and defualts it to "go".

* Correct docs.
2020-08-30 10:15:33 -03:00
Chris Salch
4f7d127859
fix: make minio based tests run locally again (#1776) 2020-08-30 10:13:12 -03:00
Carlos Alexandro Becker
e014ad0ae8
feat: allow to create apk packages (#1768)
* feat: upgrade nfpm

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

* feat: allow to create apk packages

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-22 19:00:14 -03:00
Carlos Alexandro Becker
fa5b41332a
feat: allow to disable checksum pipe (#1760)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-16 11:58:59 -03:00
Carlos Alexandro Becker
acfd0024fa
fix(brew) create file if skip is set (#1757)
* test: multiple brews with skip upload

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

* fix(brew) create file if skip is set

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

* refactor: improve code a bit

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

* fix: duplicated errors

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-16 11:29:56 -03:00
Carlos Alexandro Becker
da22bf8eb8
feat: use go 1.15 (#1759)
* Update to Go 1.15 image (#1758)

* feat: use go 1.15

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

* fix: remove darwin_386

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

Co-authored-by: Simon Jürgensmeyer <sj14@users.noreply.github.com>
2020-08-16 11:29:44 -03:00
Carlos Alexandro Becker
3d48782917
fix: brew name template (#1756)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-15 17:16:48 -03:00
Carlos Alexandro Becker
6eae126445
feat: log build hooks (#1752)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-15 14:18:31 -03:00
Carlos Alexandro Becker
5d8b6f046a
fix: ignore git warnings (#1740)
* fix: ignore git warnings

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

* test: added test case

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

* fix: failing test

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

* fix: logs

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

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-14 10:12:55 -03:00
dependabot[bot]
04f8656430
chore(deps): bump github.com/golangci/golangci-lint from 1.29.0 to 1.30.0 (#1718)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.29.0 to 1.30.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.29.0...v1.30.0)

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

* fix: lint issues

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-04 03:21:26 +00:00
Carlos Alexandro Becker
35057eac33 chore: move log to debug
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-04 00:01:07 -03:00
Ryan Currah
05f07a4d9a
feat(pipeline): change the pipeline order to support additional template variables in the before pipe (#1711)
This change allows us to use all the template variables in the named templates in the before hook.

Issue: GH-1710

Co-authored-by: Ryan Currah <ryan.currah@crowdstrike.com>
2020-07-29 23:29:31 -03:00
Masahiro Furudate
42dab4917b
fix: Fix indent of yaml generated by init (#1706)
* Fix indent of yaml generated by init

* Add `static/config_test.go`
2020-07-25 18:57:16 -03:00
Till!
841eab183c
feat: make goos and goarch available in hooks (#1702) 2020-07-23 18:46:43 +00:00
Carlos Alexandro Becker
47e88b9bcf
fix: better handle before hooks errors (#1698)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-22 09:14:56 -03:00
Carlos Alexandro Becker
10a237364b
fix: avoid copying the completer multiple times (#1680)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-20 10:36:09 -03:00
Carlos Alexandro Becker
9c9f1c5815 fix: init should have windows too
otherwise it doesnt match what our quick start guide says

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-20 10:34:33 -03:00
Aggelos Kolaitis
a69b525ddb
fix: Completer script link errors for snapcraft (#1679) 2020-07-17 16:11:08 -03:00
Brian Flad
01fd3e8c7b
feat: support closing milestones (#1657)
* feat: support closing milestones

Reference: https://github.com/goreleaser/goreleaser/issues/1415

* refactor: Adjust milestone handling for code simplification, add ErrNoMilestoneFound, and fix milestone documentation close default

Reference: https://github.com/goreleaser/goreleaser/pull/1657#pullrequestreview-445025743

* refactor: Use single repo config in milestones instead of each VCS

* fix: Ensure milestone Pipe is included in Defaulters

* feat: Add fail_on_error configuration to milestone configuration

Co-authored-by: Radek Simko <radek.simko@gmail.com>
2020-07-09 21:40:37 +01:00
6543
342f842880
chore(deps): bump code.gitea.io/sdk/gitea from v0.12.0 to v0.12.1 (#1658) 2020-07-09 13:16:46 -03:00
dependabot[bot]
777b70a13f
chore(deps): bump github.com/golangci/golangci-lint from 1.27.0 to 1.28.0 (#1648)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.27.0 to 1.28.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.27.0...v1.28.0)

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

* fix: lint issues

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Radek Simko <radek.simko@gmail.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-06 17:30:00 -03:00
Radek Simko
ab8bb7f2f3
feat: support custom tokens in Homebrew & Scoop (#1650) 2020-07-06 17:12:41 -03:00
Paul Tyng
0d4f605388
feat: deterministic / reproducible build support (#1641)
* Make checksum ordering consistent

* Use consistent time for build date

* Add commit date to templates

* Add config option for build mod timestamp

* Make goreleaser builds reproducible

* Fix error in wording

* Update www/docs/customization/build.md
2020-07-06 17:09:22 -03:00
Radek Simko
998e377627
refactor: align Homebrew repo handling with Scoop (#1649) 2020-07-06 10:48:17 -03:00
Adam Bouqdib
10c9d39d6e
fix: use correct filename for GCS downloads (#1625) 2020-06-24 14:19:20 -03:00
reddec
adbe42b198
feat: add nfpm meta mackages (#1620)
* add nfpm meta flag - ignore binaries

* docs: update nfpm.md

* Update www/docs/customization/nfpm.md

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-06-19 11:04:10 -03:00
Carlos Alexandro Becker
f739c81797
fix: removed unused code (#1605)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-06-12 21:24:54 -03:00