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

920 Commits

Author SHA1 Message Date
fredbi
8d6ef40020
feat(yaml): upgraded from yaml.v2 to yaml.v3 (#3004)
* chore(yaml): upgraded from yaml.v2 to yaml.v3

* provided internal package to take care of backward
  compatible settings:
    * UnmarshalStrict method
    * mute io.EOF unmarshaling errors
    * marshal indenting with 2 chars
* adapted unit tests to new yaml v3

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>

* fixed failing tests

Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
2022-03-29 14:00:53 -03:00
Carlos Alexandro Becker
08c9038c29
feat: set -mod on gomod pipe (#2983)
this allows to set the -mod flag on the command used to grab the module
root package, in case its needed to ignore the vendor folder, force
readonly, etc...

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-17 08:53:39 -03:00
Carlos Alexandro Becker
0a66b3dc85
feat: deprecate buildpacks (#2982) 2022-03-17 07:55:17 -03:00
Carlos Alexandro Becker
d81820bb01
feat: remove some deprecated code, go 1.15 support (#2985)
* feat: remove some deprecated code, go 1.15 support

- auto ignore darwin/arm64 on go <1.15, check https://goreleaser.com/deprecations/#builds-for-darwinarm64
- `dockers.use_buildx` (do not mix with `dockers.use: buildx`), check https://goreleaser.com/deprecations/#dockersuse_buildx

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

* test: remove deprecated test
2022-03-16 23:37:29 -03:00
Carlos Alexandro Becker
077ce16174
feat: more go 1.18 (#2984)
* feat: more go 1.18

moved more workflows to go 1.18, switched some code to strings.Cut

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

* revert unwanted change
2022-03-16 23:28:13 -03:00
Carlos Alexandro Becker
3c4e797150
feat: upgrade to go 1.18 (#2978)
* feat: upgrade to go 1.18

* chore: go mod tidy

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

* test: fix

* fix: more updates

* test: fix test
2022-03-16 21:51:48 -03:00
Carlos Alexandro Becker
4c477b5cd1
fix: brew.post_install indent (#2981)
properly indent brews.post_install block, and also fix indent on newly
added brews.service block.

closes #2980

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-16 21:40:25 -03:00
Carlos Alexandro Becker
7730a4de94
feat: brew service block (#2973)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-16 21:12:57 -03:00
Carlos A Becker
42258cf473
fix: double quotes
Co-authored-by: Christian Muehlhaeuser <muesli@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-11 22:23:19 -03:00
Carlos Alexandro Becker
c17ff3b966
fix(aur): improve yay caching (#2965)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-03-09 09:50:57 -03:00
Carlos A Becker
788a4394e1
fix: ensure aur key has eof newline 2022-03-06 17:27:23 -03:00
David Stotijn
c4017fca69
feat: add missing Snapcraft app metadata fields (#2955)
* fix: add missing snapcraft app metadata fields

* docs: add missing snapcraft app metadata fields

* Apply suggestions from code review

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2022-03-05 23:16:43 -03:00
Carlos Alexandro Becker
5828dd8d9b
fix: nfpm globbing multiple times (#2947)
The nfpm pipe was globbing the input list, and then globbing its result
as well. If you add a folder that had a file with, say `[]`, in it, it
would later fail the release upon trying to evaluate that as a glob.

This is probably some faulty nFPM update in which I should have removed
that but didn't.

Either way, this should fix it.

closes #2946
2022-03-01 20:57:12 -03:00
Ryan Currah
f734b503d4
feat(pipe/brew): install amd64 binaries when no arm64 binaries present (#2939)
Currently on a M1 macbook when adding a tap with formulas that only support amd64 it fails to add the tap. This prevents new arm64 users from using the tap. By allowing arm64 users to install an amd64 binary if no arm64 binary is avialable will atleast allow the user to use the tap.
2022-02-25 21:57:46 -03:00
Alex Goodman
c8450633e5
fix: dedupliate cataloging binary artifacts (#2839) 2022-02-25 11:28:09 -03:00
Carlos Alexandro Becker
1bc01df5b9
fiX: improve aur key handling (#2935)
* fiX: improve aur key handling

make sure it has the right permissions and improve error messages

refs https://github.com/goreleaser/goreleaser-action/issues/326

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

* fix: improve error msgs, make sure file is closed

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-25 08:43:08 -03:00
Carlos Alexandro Becker
f640deb104
fix: trim spaces from aur private key (#2930)
I had this issue on a repo, and it seems at least one more person had it too: ssh/git complaining that the key is invalid.

My guess is that gh secret set from a file is now appending a new line - as it worked with the exact same key before, for me at least.

anyway, if thats it, this pr should fix it.

closes https://github.com/goreleaser/goreleaser-action/issues/326

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:58:25 -03:00
Carlos Alexandro Becker
d295d0bdff
feat: annotated tag body (#2923)
* feat: annotated tag body

this adds another template variable, `TagBody`, with the body of the annotated tag/commit message only.

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

* refactor: tag contents

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-24 22:57:51 -03:00
Carlos Alexandro Becker
d07a5a8541
feat: change default nfpm bindir (#2910)
/usr/local/bin is intended for binaries compiled locally, which is never
the case for goreleaser.

this changes the default to /usr/bin instead.

closes #2909

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-14 21:54:04 -03:00
Carlos Alexandro Becker
02a94ce23e
feat: lintian overrides (#2892)
* feat: lintian overrides

allow to more easily set lintian overrides

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

* fix: lintian

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-09 11:40:51 -03:00
Carlos Alexandro Becker
c457d8fff7
feat: allow to use .Path and .Name on universal binary post hooks (#2891)
* feat: allow to use .Path and .Name on universal binary post hooks

This allows the usage of `{{ .Path }}` and `{{ .Name }}` on post
templates.

Closes #2890

* docs: improve docs

* test: add more tests
2022-02-08 11:44:47 -03:00
Carlos Alexandro Becker
5f30f3606a
fix: make --release-notes flags more deterministic (#2888)
* fix: make --release-notes flags more deterministic

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

* chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-06 22:09:46 -03:00
Carlos Alexandro Becker
456f8aa2b1
feat: warn if loaded changelog is whitespace-only (#2885)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-06 14:24:47 -03:00
Carlos A Becker
9df62d87ec
fix: build log print relative path instead of abs
all other logs print relative paths, only the build logs are printing the abs path.

this makes things more even.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-05 17:44:07 -03:00
Carlos A Becker
efdc4d0f48
test: fixed hooks tests
refs #2875
refs f585f3be69

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-05 16:28:17 -03:00
Carlos A Becker
f585f3be69
feat: allow to output on hooks
refs #2875
2022-02-05 16:00:49 -03:00
Carlos Alexandro Becker
17aba5ce76
fix: aur error messages (#2880)
* fix: aur error messages

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

* fix: more renames

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-04 14:45:02 -03:00
Carlos Alexandro Becker
120780605b
fix: nfpm binaries should have 755 instead of 775 perms (#2873)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-02-02 23:30:08 -03:00
Carlos Alexandro Becker
f3743ed66b
feat: template nfpms.maintainer (#2872) 2022-02-02 15:39:44 -03:00
Carlos Alexandro Becker
1bdfc9cdff
feat: allow to override build flags by goos/goarch/etc (#2860)
* feat: allow to override build flags by goos/goarch/etc

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

* test: improve

* fix: typos

* feat: templates, merges

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

* test: fix

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

* test: one more case

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

* Update internal/builders/golang/build.go

Co-authored-by: Brian Flad <bflad417@gmail.com>

* Update internal/builders/golang/build.go

Co-authored-by: Brian Flad <bflad417@gmail.com>

* test: more tests

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

Co-authored-by: Brian Flad <bflad417@gmail.com>
2022-02-02 00:01:34 -03:00
Carlos Alexandro Becker
9d481d4630
feat: expose runtime goos and goarch on templates and metadata (#2859)
* feat: expose runtime goos and goarch on templates and metadata

* test: fix duplicated map literal in some os/arch

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-31 22:36:22 -03:00
Carlos Alexandro Becker
a1447a3635
fix(aur): version must be numbers only (#2850)
* fix(aur): version must be numbers only

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

* fix: format

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

* fix: revert removed line
2022-01-27 00:23:37 -03:00
Carlos Alexandro Becker
aad1e1e3d5
feat: write a dist/metadata.json (#2845)
* feat: write a dist/metadata.json

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

* fix: comments

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

* fix: lint

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

* fix: test

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

* fix: lint

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

* fix: lint

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

* test: added one more test
2022-01-23 16:42:42 -03:00
Carlos A Becker
acddce5777
fix(aur): use StrictHostKeyChecking=accept-new by default
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-21 22:17:12 -03:00
Carlos Alexandro Becker
b02bec962e
feat: arch user repository integration (#2838)
* feat: aur PKGBUILD integration

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

* feat: guess install, improve formatting

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

* fix: more deterministic

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

* feat: binary releases, push, more tests

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

* feat: accept key as text

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

* feat: improvements

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

* feat: srcinfo

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

* fix: compile

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

* fix: everything

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

* fix: lint

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

* feat: renames, docs, etc

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

* docs: link to docs

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

* fix: go mod tidy, title

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

* fix: srcinfo tmpl

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

* fix: missing close quote

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

* fix: templates

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

* fix: always defaults conflicts and provides

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

* fix: ssh command

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

* fix: maintainers can be a list

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

* fix: ensure -bin suffix, more tests and docs

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

* fix: this will never happen

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

* fix: whitespaces

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

* fix: goreleaser config

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-20 14:59:39 -03:00
Carlos Alexandro Becker
a6a6e11cc9
fix: template main with gomod.proxy (#2834)
* refactor: rename file

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

* fix: template main with gomod.proxy

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-14 10:33:11 -03:00
Carlos Alexandro Becker
b28a28efb6
feat: allow to template commit author (#2826)
* feat: allow to template commit author

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

* chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-11 09:15:28 -03:00
Carlos Alexandro Becker
6c04acd3ab
fix: go install and go-reddit (#2823)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-10 11:10:35 -03:00
Engin Diri
339bcabbb5
feat: add generic webhook announcer (#2750) 2022-01-08 14:46:27 -03:00
Carlos Alexandro Becker
bdfb09cfb7
fix: do not filter and sort github-native changelog (#2803)
* fix: do not filter and sort github-native

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

* refactor: improve code a bit

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

* refactor: improve code a bit

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

* fix: changelog header

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-08 09:24:36 -03:00
Carlos Alexandro Becker
4a4c5ec5a6
feat: allow multiple ids on universal binaries (#2811)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-07 09:16:54 -03:00
Carlos Alexandro Becker
8e1b6a1bbb
feat: allow to template dockerfile (#2797)
* feat: allow to template dockerfile

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

* test: added one more test

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-06 15:34:55 -03:00
Carlos Alexandro Becker
848c43a7fa
feat: less logs for defaults (#2795)
closes #2794

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2022-01-06 15:32:55 -03:00
Thomas Pelletier
8d5cee398b
fix: don't format github-native changelog (#2802)
The Github changelog generation API returns a pre-formatted changelog. The
current implementation prefixes every line of that log with "* ". This operation
breaks the formatting.

This change makes goreleaser treat github-native changelog as-is, without
trying to modify it.
2022-01-02 22:00:34 -03:00
Carlos Alexandro Becker
bbd79a11a7
fix: artifacts.json should be 0644 instead of 0600 (#2801) 2021-12-31 15:05:28 -03:00
Carlos A Becker
cdcaf038c8
test: fixes sbom tests
refs #2798

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-30 09:47:52 -03:00
Carlos Tadeu Panato Junior
cbdf8caed4
fix: sbom binary filter (#2798)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-12-30 09:44:15 -03:00
Carlos A Becker
114c980726
fix: mutex on checksum refresh
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-22 14:42:18 -03:00
Carlos A Becker
78795394dd
fix: upload sboms to release
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 21:45:28 -03:00
Carlos Alexandro Becker
f42e0872f6
fix: do not group changelog when using github-native (#2781)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 14:21:05 -03:00
Carlos A Becker
440e9a63b9
test: fixed snapcraft test
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-21 00:07:17 -03:00
Carlos A Becker
ff7d4f5162
fix: improve docker logs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-20 23:43:35 -03:00
Carlos Alexandro Becker
994cbb47c3
fix: sign with cert only (#2757)
* fix: sign with cert only

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

* test: coverage

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

* chore: style

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

* fix: empty sig

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

* fix: log

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

* chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-16 13:41:50 -03:00
Alex Goodman
bfdec808ab
feat: add sbom generation pipe (#2648)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-12-12 00:21:51 -03:00
Carlos Alexandro Becker
e8c8a2832f
feat: improve universal binaries on krew/brew/gofish (#2747)
* feat: improve universal binaries on krew/brew/gofish

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

* test: OnlyReplacingUnibins

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

* fix: archive

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

* fix: do not replace single-arch

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-07 21:53:39 -03:00
Carlos Alexandro Becker
87a1ac21d7
fix: artifacts.json when type is archive (#2748)
* fix: artifacts.json when type is archive

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

* test: fix scoop test

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-07 21:52:35 -03:00
Carlos Alexandro Becker
395266bb9b
test: improve scoop tests (#2749)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-07 18:04:29 -03:00
Carlos A Becker
f01c60026c
fix: improve git tag contents output
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-06 17:21:37 -03:00
Carlos Alexandro Becker
6ea7fb792a
feat: annotated tag contents (#2744)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-06 16:52:26 -03:00
Carlos Alexandro Becker
7c2a93cfaa
feat: allow to always log signing output (#2731)
* feat: allow to always log signing output

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

* fix: improve code a bit

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-06 10:07:47 -03:00
Carlos Alexandro Becker
9b9eef04a2
feat: get annotated tag message (#2730)
refs  #2726

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-05 23:23:15 -03:00
Carlos Alexandro Becker
cbcdd41f97
feat: auto-refresh checksums (#2573)
* fix: refresh checksums

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

* fix: better logs

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

* fix: keep no art behavior, add more tests

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

* fix: refresh in more places

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

* chore: fmt

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

* fix: refresh in the end

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

* fix: marshal extra with refresh

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

* fix: signature

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-05 22:42:13 -03:00
Carlos Alexandro Becker
73867736a5
feat: improve multiple tokens error (#2733)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-05 22:25:29 -03:00
Carlos Alexandro Becker
6774755d8c
fix: double-dash cosign flags (#2725)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-03 15:47:37 -03:00
Carlos Alexandro Becker
ecb800aef7
feat: store artifact list into dist/artifacts.json (#2715)
* feat: store artifact list into dist/artifacts.json

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

* chore: fmt

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-12-01 09:54:58 -03:00
Carlos Alexandro Becker
30ff48a5a6
feat: remove docker images from changelog (#2708)
refs #2707

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-30 21:13:35 -03:00
Carlos Alexandro Becker
e8fca30104
refactor: remove unused git.RunEnv (#2706)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-28 00:22:44 -03:00
Carlos A Becker
f454277029
test: more universal binaries hooks tests
refs #2696

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-25 21:57:32 -03:00
Carlos A Becker
8c6742964c
test: cleanup a bit buildpack test
refs #2596

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-25 21:51:04 -03:00
Erik Kristensen
274ffae03c
feat: add git summary support (aka git describe --dirty --tags --always) (#2700)
* feat: add git summary support (aka git describe --dirty --tags --always)

* feat: update documentation for new summary template variable

* test: add tests for new summary feature
2021-11-25 03:01:56 +00:00
Pedro López Mareque
2bdb39e06a
feat: use top level environment variables within env section in docker (#2596)
* feat: add global env to the docker builds

* chore: remove output

* feat: updates according to reviews

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

* feat: add test

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

* feat: updates according to code review

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

Co-authored-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
2021-11-24 10:42:12 -03:00
Carlos Alexandro Becker
cd261a527a
feat: allow to use .PreviousTag on templates (#2683)
* feat: expose .PreviousTag

* fix: previous tag will never be a commit

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

* fix: tests

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

* docs: tag

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-24 09:12:24 -03:00
Carlos Alexandro Becker
df0c31dea1
feat: make each changelog commit a list item (#2695)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-24 09:11:42 -03:00
Carlos A Becker
b508d7f156
test: add a case that cathes nothing
refs #2670

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-11-23 22:30:55 -03:00
Engin Diri
5ac11a1cba
feat: add changelog sorting (#2670)
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
2021-11-23 22:23:53 -03:00
Weslei Juan Novaes Pereira
f9b693edf0
feat: add hooks to universal binaries (#2684)
* add hooks for universal binaries

* task fmt
2021-11-23 15:53:12 -03:00
Carlos Alexandro Becker
8955b2503a
fix: jsonschema field names (#2693)
* fix: jsonschema field names

* fix: validate missing tags
2021-11-23 10:18:09 -03:00
Carlos Alexandro Becker
37f8167fd9
fix: checksum extra_files when no builds (#2692) 2021-11-23 09:40:47 -03:00
Carlos Tadeu Panato Junior
ff0fdf3520
fix: update strings when using a custom distribution directory (#2689)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-11-23 09:25:15 -03:00
Carlos Alexandro Becker
808b603506
feat: template on extra_files (#2677)
* feat: template on extra_files

* Update internal/extrafiles/extra_files_test.go

Co-authored-by: Brian Flad <bflad417@gmail.com>

* Update www/docs/customization/blob.md

Co-authored-by: Brian Flad <bflad417@gmail.com>

Co-authored-by: Brian Flad <bflad417@gmail.com>
2021-11-22 14:53:08 -03:00
Carlos Alexandro Becker
72434a036e
fix: ensure certificate is always within dist (#2680)
* fix: ensure certificate is always within dist

* fix: improve impl

* fix: uneeded err check
2021-11-22 14:52:30 -03:00
Carlos A Becker
35eb844f93
test: sign with cmd not installed
refs #2651
2021-11-21 15:22:07 -03:00
Carlos A Becker
9505cf7054
feat: improve git dirty error
also added a /errors page to our docs

closes #2674
2021-11-21 12:47:25 -03:00
Ahmed
c0e5e3b90f
refactor: use os and io instead of ioutil (#2676) 2021-11-21 11:10:08 -03:00
Carlos A Becker
f731173491
test: do not prefix version with v 2021-11-13 23:25:58 -03:00
Carlos Alexandro Becker
b5ea693ada
feat: templates on sign env (#2667)
* feat: templates on sign env

* fix: env
2021-11-13 23:24:17 -03:00
Carlos Alexandro Becker
6528948217
feat: update nfpm (#2640)
* feat: update nfpm

* feat: update nfpm

* feat: update nfpm

* feat: update nfpm

* fix: dir type

* docs: dir

* docs: typo

* fix: race

* fix: race cond
2021-11-13 22:23:11 -03:00
Carlos Alexandro Becker
df0216d585
feat: nfpm conventional file name (#2663) 2021-11-12 12:07:59 +00:00
Carlos A Becker
91f6b142fa
fix: linkedin release url 2021-11-11 23:53:40 -03:00
Carlos Alexandro Becker
312e52a760
feat: sign with env and output certificate (#2662)
* feat: sign with env and output certificate

* fix: test

* fix: prop name

* test: blob upload

* test: http upload

* test: exec

* test: sign
2021-11-11 22:56:03 -03:00
Carlos Alexandro Becker
52cf951c30
feat: krew support (#2639)
* feat: krew support

* fix: adds it to the pipe

* chore: fmt

* test: improvements

* fix: rm unused code

* fix: stringer

* fix: tmpl

* test: improvements

* fix: lint issues

* fix: only allow 1 binary per archive

* fix: validate

* chore: comment

* fix: renamed to manifest

* fix: krew plugin manifest

* fix: name

* fix: godoc

* fix: install validate-krew-manifest on ci

* fix: helper

* fix: ensure order

* fix: testing

* docs: guidelines

* fix: flag
2021-11-11 09:37:58 -03:00
Carlos Alexandro Becker
8eae8b013a
feat: support github release notes (#2638)
* feat: support github release notes

* chore: godoc

* test: cover it with tests

* chore: fmt

* refactor: remove unused code
2021-11-07 12:53:28 -03:00
Carlos A Becker
1b4080b7da
chore: fmt 2021-11-06 23:10:44 -03:00
Carlos A Becker
46cb26de69
test: improved gofish tests 2021-11-06 22:43:47 -03:00
Carlos A Becker
9ee5ac1669
fix: linkedin announcer 2021-11-06 22:24:15 -03:00
Carlos A Becker
f0928105d6
chore: fmt 2021-11-06 21:05:04 -03:00
Furkan Türkal
aa41862fe0
feat: announce to LinkedIn (#2492)
Fixes #2428

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan Apaydin <batuhan.apaydin@trendyol.com>
Co-authored-by: Erkan Zileli <erkan.zileli@trendyol.com>

Co-authored-by: Batuhan Apaydin <batuhan.apaydin@trendyol.com>
Co-authored-by: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2021-11-06 21:04:08 -03:00
Carlos A Becker
cf73ede932
refactor: improve changelog code 2021-11-06 16:58:07 -03:00
Carlos Alexandro Becker
a2ba9cb8fa
refactor: release url (#2637)
* refactor: release url

* chore: fmt

* chore: less diffs

* docs: lowercase everything

* chore: improve fmt

* chore: revert
2021-11-06 16:54:01 -03:00
Carlos A Becker
8ca5009268
fix: discord default url 2021-11-06 16:49:23 -03:00
Carlos A Becker
c9991ad9ab
chore: fmt 2021-11-06 16:49:11 -03:00
Carlos A Becker
012c9fcb05 test: add more prerelease.auto tests 2021-11-06 15:58:40 -03:00
Batuhan Apaydın
b99ccc029c
feat: add message template support for git providers (#2626)
* feat: add message template support for git providers

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com>
Co-authored-by: Erkan Zileli <erkan.zileli@trendyol.com>
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>

* Apply suggestions from code review

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com>
Co-authored-by: Erkan Zileli <erkan.zileli@trendyol.com>
2021-11-06 15:39:43 -03:00
Carlos Alexandro Becker
143b955f1b
refactor: improve release defaults (#2627) 2021-11-06 15:33:18 -03:00
Furkan Türkal
8e89e3fde3
fix: remove .git suffix by default from announcers (#2623)
* fix: remove .git suffix by default from announcers

Fixes #2622

Signed-off-by: Furkan <furkan.turkal@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
Co-authored-by: Erkan <erkan.zileli@trendyol.com>

* feat(doc): update defaults

Signed-off-by: Erkan Zileli <erkan.zileli@trendyol.com>
Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
Co-authored-by: Furkan <furkan.turkal@trendyol.com>

Co-authored-by: Batuhan <batuhan.apaydin@trendyol.com>
Co-authored-by: Erkan <erkan.zileli@trendyol.com>
2021-11-02 20:03:23 -03:00
Tom Payne
b1a0f35b14
feat(source): add prefix_template option (#2620) 2021-11-02 19:57:20 -03:00
Carlos Alexandro Becker
01fa7a6827
refactor: organize config a bit (#2619)
* refactor: organize config a bit

* test: fix
2021-11-01 09:31:43 -03:00
Carlos A Becker
48d774970c
fix: add debug log for changelog file load
refs #2601
2021-10-26 23:05:25 -03:00
Engin Diri
9fd61fb956
fix: goFish check for same OS/Arch is unnecessary (#2604)
Signed-off-by: Engin Diri <engin.diri@mail.schwarz>
2021-10-25 21:42:28 -03:00
Carlos Alexandro Becker
be6199f081
test: allow to locally skip some tests on missing tools (#2594)
* test: allow to locally skip some tests on missing tools

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

* fix: ci tests

* fix: helper
2021-10-20 21:56:27 -03:00
Mark Cornick
ba9b75a095
fix(brew): remove deprecated bottle :unneeded (#2591)
* fix(brew): Remove deprecated `bottle :unneeded`

Fixes this warning from Homebrew:
`Warning: Calling bottle :unneeded is deprecated! There is no replacement.`

* fix(brew): fix regression that added newlines to formula
2021-10-19 17:28:23 -03:00
Carlos Alexandro Becker
a2ff2b8dda
feat(brew): multi-arch brew on binary archives (#2590)
* feat(brew): multi-arch brew on binary archives

also fixes brew taps when archives have different binaries in each platform (e.g. some binary is only on the linux archives for some reason)

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

* Update internal/pipe/brew/template.go

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

* fix: spacing

Co-authored-by: Radek Simko <radek.simko@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

Co-authored-by: Radek Simko <radek.simko@gmail.com>
2021-10-18 09:31:20 -03:00
Carlos Alexandro Becker
c99071eb9e
feat(homebrew): support binary releases (#2576)
* feat(homebrew): support binary releases

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

* fix: improve code

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

* fix: improve code a bit

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

* test: fix archive testts

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-16 23:52:01 -03:00
Carlos Alexandro Becker
f4cef96055
feat(gofish): support binary releases (#2577)
* feat(gofish): support binary releases

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

* fix: improve code

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-16 23:20:14 -03:00
Carlos Alexandro Becker
cbb567ca74
fix(archive): add extra fields to the archives (#2578)
* fix(archive): binary format should have the full binary name

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

* fix: added an extra field

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-16 23:03:06 -03:00
Carlos Alexandro Becker
df2f00fc8b
refactor: put common extra keys in the artifact package (#2580)
* refactor: put common extra keys in the artifact package

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

* refactor: common extra fields have their own funcs

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

* refactor: 2 more

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

* fix: review

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-10-16 22:46:11 -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 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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 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 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
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
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 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 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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Aggelos Kolaitis
0c0063a5b4
feat: Support custom command and extra files in snaps (#1553) 2020-06-06 15:07:18 -03:00
Weslei Juan Moser Pereira
da78747875
feat: Add support for templated release notes, header and footer (#1575)
* Added support to header and footer template

* Add template for release notes
2020-05-31 13:18:48 +01:00
Eduardo Lopez
6645c58114
fix: Brew versioned formulae now supported (#1568) 2020-05-26 14:50:39 +00:00
Carlos Alexandro Becker
5f41640978
chore(deps): bump github.com/goreleaser/nfpm from 1.2.1 to 1.3.0 (#1565)
* chore(deps): bump github.com/goreleaser/nfpm from 1.2.1 to 1.3.0

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

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-26 01:15:20 -03:00