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

407 Commits

Author SHA1 Message Date
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
Ahmed
c0e5e3b90f
refactor: use os and io instead of ioutil (#2676) 2021-11-21 11:10:08 -03:00
Carlos A Becker
f318be4529
feat: update nfpm to 2.9.2 2021-11-14 11:22:27 -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 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 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
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
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
Patrick Hahn
e5a9e18050
feat(schema): add command that generates jsonschema (#2589)
* feat(schema): Add command that generates the jsonschema for .goreleaser.yml files

This commit adds the jsonschema/schema subcommand that generates a jsonschema doc based on the Project go struct.
For the config types that alternatively allow you to specify a string via custom UnmarshalYAML function, this commit adds the JSONSchemaType function, so the type gets documented with an oneOf with string or itself.
Add yaml key names for properties that are currently missing them, so alecthomas/jsonschema generates the keys with correct casing.

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* fix: Add linguist-generated attribute to generated schema json to exclude this file from pull request size validation

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* fix: run gofumpt

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* chore(schema): update alecthomas/jsonschema and regenerate schema.json

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>
2021-10-26 15:02:03 -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
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 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
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 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
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
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
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
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
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
Carlos Alexandro Becker
c2ffee8dd5
fix: merge conflicts
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 16:47:13 -03:00
Furkan Türkal
aa28f31ab5
feat: announce: slack (#2429)
Fixes #2425

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

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-09-01 10:27:31 -03:00
Carlos Alexandro Becker
c08bb7f24c
refactor: order methods
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:19:10 -03:00
Carlos Alexandro Becker
990fb63aef
feat: allow to use .tar as archive format
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:09:18 -03:00
Carlos Alexandro Becker
8858049a28
refactor: tar logic
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:08:57 -03:00
Carlos Alexandro Becker
275e17bc76
feat: support links inside archives (#2436)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-08-31 23:08:07 -03:00
Carlos Alexandro Becker
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
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
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
Carlos Alexandro Becker
a9f076b8fc
fix: archive subdir with the same name as src
closes  #2366

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-07-26 08:38:14 -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
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
ba5dc09c23
fix: manifest default
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-03 23:00:42 +00: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 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
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
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 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 Alexandro Becker
2375c93359
feat: build tags (#2268)
* feat: build tags

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

* fix: quotes

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

Co-authored-by: Lukas Malkmus <lukasmalkmus@users.noreply.github.com>
2021-05-31 13:47:39 -03:00
Carlos 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
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
9913fe7db6
feat: template release notes (#2242)
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-05-21 21:07:47 -03: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 Alexandro Becker
66117f3126
fix: several fd leaks (on tests) (#2187) 2021-04-25 11:34:40 -03:00
Carlos Alexandro Becker
7a7a6f61ba
feat: create discussions from releases (#2177)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-21 13:43:59 -03:00
Carlos Alexandro Becker
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
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
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
Carlos Alexandro Becker
e8ea231122
feat: allow to use nfpm packages in the docker pipe (#2003)
* feat: copy nfpms to docker image too

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

* test: wip

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

* fix: logs

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

* test: fixes

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

* test: improving

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

* docs: deprecations and docker improvements

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

* fix: revert .goreleaser.yml changes

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

* test: fix

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

* docs: fix syntax

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

* docs: fixed deprecation warnings

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

* test: fix

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

* test: coverage

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

* test: add one more test case

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

* test: fix

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

* test: fix

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-01-07 19:21:12 +00:00
Sune Keller
f934314be3
feat(http): support custom headers in http upload (#2002)
Signed-off-by: Sune Keller <absukl@almbrand.dk>
2021-01-07 17:15:53 +00:00
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
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
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
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
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
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
e337fc9ca0
feat: multi-arch docker images (#1923)
* feat: multi-arch docker images

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

* feat: split files

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

* docs: manifest

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

* refactor: split files

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

* test: added some

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

* docs: flags

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

* fix: fmt

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

* fix: diff

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

* ci: enable experimental

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

* ci: multi-arch goreleaser images

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

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

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

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

* fix: lint

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

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

* feat: remove trailing whitespace from generated brew formula (#1908)
2020-11-26 10:06:47 -03:00
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
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
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
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
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
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
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
Chris Salch
cc3567cde9
feat: Add gobinary option to build configs (#1775)
* Possible implementation of #1235.

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

* Correct docs.
2020-08-30 10:15:33 -03:00
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
Till!
841eab183c
feat: make goos and goarch available in hooks (#1702) 2020-07-23 18:46:43 +00: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
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
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
Carlos Alexandro Becker
69c8a502db
chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0 (#1563)
* chore(deps): bump github.com/golangci/golangci-lint from 1.23.7 to 1.27.0

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-26 00:48:10 -03:00
Weslei Juan Moser Pereira
c805451de0
feat: Added extra files to blob (#1535)
* Reordered indexes in docs

* Fix customization order

* Implemented extra files

* Added tests for extra files

* Added docs

* Fix test with defaults

* Removed path and folder from extra_files

* Fix scope lint

* Removed dead code

* Removed dead code

* Added test for common package

* Fix linting

* Removed false positive from golangci

* Requested changes
2020-05-25 15:07:40 -03:00
Carlos Alexandro Becker
48be332890
fix: brew dependency: string or struct (#1559)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-25 09:40:27 +00:00
Grachev Mikhail
207ee49853
feat: add support brew dependency types (#1554)
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
2020-05-24 12:10:25 -03:00
Radek Simko
363aa74dcb
feat: Expose semver for snapshots (#1557) 2020-05-24 15:05:49 +00:00
Radek Simko
983f342ab8
feat: Add build command (#1520)
* feat: Add build command

* feat(cmd/build): Add skip-post-hooks flag

* Update internal/pipeline/pipeline.go

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

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-05-15 11:19:20 -03:00
Radek Simko
8749030d3b
feat: Add support for custom publishers (#1481)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-05-10 16:03:49 +00:00
Zach Leslie
0f7ff6247b
feat(scoop): provide config option to change commit message (#1467)
Without this change, users unable to control the resulting commit message of the
scoop update.  In some environments this may present an issue with commit
linters that require a specific commit message format in order to build proper
change logs and make decisions.  Here we include a Scoop config option to use a
format string provided by the user during the commit.
2020-04-29 17:45:18 -03:00
Carlos Alexandro Becker
2f16c4c653
feat: remove deprecated nfpm options and puts (#1442)
also updated docs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-19 19:54:07 -03:00
J Taylor
081430bcc7
feat: xz compression (#1422)
* feat: xz compression

* remove .xz feature

* fix: format code with gofmt

* use larger dict for better compression

* Update pkg/archive/tarxz/tarxz.go

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-04-13 12:53:03 +00:00
Carlos Alexandro Becker
a5f0343368
feat: improve check command (#1435)
* feat: improve check command

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

* fix: main test

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

* fix: tests

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

* fix: tests, finally

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

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-12 14:31:35 -03:00
Radek Simko
8032d12052
feat(pipe/build): Add support for flexible build hooks (#1414) 2020-04-12 12:13:20 -03:00
Carlos Alexandro Becker
7fe4d0ae79
feat: upload source archive (#1379)
* feat: upload source archive

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

* fix: lint

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-04-12 11:47:46 -03:00
Leonardo Grasso
1cf9100ecc
feat: build.skip option, support for library projects (#1419)
* fix: checksum pipe will not return an error when artifact list is empty

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>

* new: build.skip option for libraries

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>

* docs: update doc with build.skip option

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
2020-04-02 13:18:05 +00:00
John Taylor
e2ef52032b
feat: use maximum compression for gzip and zip archives (#1416)
* feat: use maximum compression for gzip and zip archives

* fix: add comment for skipping error check

Co-authored-by: John Taylor <ec2-user@ip-172-31-29-117.ap-south-1.compute.internal>
2020-04-01 19:05:20 +00:00
Carlos Alexandro Becker
0126a1f32b
feat: remove deprecated blob and sign (#1397)
* feat: remove deprecated blob and sign

you should now use blobs and signs instead.

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-22 16:26:22 -03:00
Carlos Alexandro Becker
bc64da18ab
fix: default evn tokenfiles (#1389)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-03-16 12:10:56 -03:00
dotwoo
d03c0aa0be
feat(nfpm): add nfpm release config (#1363)
add config.NFPM.Release  to set  nfpm release
2020-02-26 08:59:52 -03:00
Carlos Alexandro Becker
d7c540523d
feat: upload extra files to the release (#1333)
* feat: upload extra files to the release

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

* fix: retry upload

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

* fix: go mod tidy

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

* fix: globs

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

* fix: globs

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

* fix: typo

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-02-11 16:10:41 -03:00
Bao Nguyen
dd35f28d51
feat: Add the ability to place artifact name (#1338)
This commit exposes the Artifact name as a template variable so that the
artifact name can be moved around within the `targetURL`. This enable users to
manipulate the target URL as desired in order to pass in PUT parameters that
doesn't always following the currently defined `targetURL` which append the
artifact name to the end.

This is needed to address[1] by enable the ability to add metadata to
Artifactory REST API [2] as the URL parameters, which need to be after the
artifact names.

It's important that this is backward compatible with existing release
configurations so this is an opt-in option, if it's omitted or not set, no
changes to exist configurations. When enabled with `CustomArtifactName=True` as
part of HTTP Upload options `Artifact.Name` will no longer be appended to the
end of TargetURL.

[1]:https://github.com/goreleaser/goreleaser/issues/1336
[2]:https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-Example-DeployinganArtifact
2020-02-10 22:59:57 -03:00
Nate Smith
16fe0ea3bf
feat: add ability to skip prereleases for scoop pipeline (#1332) 2020-02-05 22:05:43 -03:00
Carlos Alexandro Becker
181799c9c8
feat(sign): id, concurrent map (#1321)
* feat(sign): id, concurrent map

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

* fix: more tests

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

* fix: comments

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-01-30 00:21:45 -03:00
Carlos Alexandro Becker
479798126e
feat: remove deprecated brew config (#1313)
* feat: remove deprecated brew config

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

* fix: wording

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

* fix: wording

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

* fix: defaults

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

* fix: defaults

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

* fix: defaults

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-01-26 18:36:01 -03:00
Carlos Alexandro Becker
3bfb36355e
feat: support to gomips (#1288)
* feat: support to gomips

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

* fix: prefix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-01-26 14:36:00 -03:00
Carlos Alexandro Becker
5f2cf501e8
feat: remove deprecated s3 pipe (#1291)
* feat: remove deprecated s3 pipe

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

* fix: go mod tidy

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-01-26 12:25:27 -03:00
Tadej Janež
1943d3147b feat: specify (sub)directory with go code when building (#1273) 2020-01-13 14:23:00 -03:00
Carlos Alexandro Becker
8defb77b0e
feat: remove singular archive config (#1282)
* feat: remove singular archive config

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-12-29 15:02:15 -03:00
Carlos Alexandro Becker
468401bc54
feat: remove singular snapcraft config (#1281)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-12-27 17:31:03 -03:00
Carlos Alexandro Becker
885a9710e5
feat: remove deprecated nfpm (#1280)
* clean: remove deprecated nfpm

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

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-12-27 14:51:40 -03:00
Carlos Alexandro Becker
05116ff8e6
feat: added blob.region and blob.disableSSL (#1279)
* feat: added blob.region and blob.disableSSL

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

* fix: simplified url

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-12-27 14:18:41 -03:00
Carlos Alexandro Becker
6edf6698cb
feat: docker builds filter (#1275)
* feat: docker builds filter

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

* docs: docker builds filter

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

* test: fixed

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-12-27 11:55:03 -03:00
Carlos Alexandro Becker
2dc3ae3010
feat: fully support all s3 pipe feats on blob (#1253)
* feat: fully support all s3 pipe feats on blob

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

* fix: tidy deps

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

* docs: document endpoint option

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

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-20 13:08:25 -03:00
Carlos Alexandro Becker
b0481a14e0
feat: http POST (#1246)
* feat: http POST

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

* feat: http POST

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

* fix: deprecate

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

* fix: upload tests

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

* fix: artifactory

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

* fix: http username validation

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

* fix: renames

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-18 10:34:17 -03:00
Carlos Alexandro Becker
0953c2f4f7
feat(nfpm): allow to change package name (#1244)
* feat: allow to change package name

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

* fix: typo

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-15 16:00:48 -03:00
Ivan Novikov
16cb4d8277 feat: Added new flags to support release notes header and footer. (#1212)
* Added new flags to support release notes header and footer.

Created two flags for release generation.
--release-footer
--release-header
These flags can help you to add custom changelog text before/after changes that are generated by git log.

* Fix changelog.go to avoid lint errors

* Fix test typo

* Added tests for main, fixed bug with no passing options to release ctx

* Add @caarlos0  suggestions
2019-11-15 10:22:11 -03:00
Carlos Alexandro Becker
4719763c4a
feat: filter by id on sign pipe (#1233)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-08 09:10:56 -03:00
Deavon M. McCaffery
93259b0683 feat(release): add artifact filter (by id) to release pipe (#1203)
* feat(release): add artifact filter (by id) to release pipe

* add `ids: string[]` to release configuration
* add support for filtering artifacts by id within the release pipe

* update docs for release
2019-10-19 16:01:11 -03:00
Carlos Alexandro Becker
50235f2974
chore(deps): bump all (#1174)
* chore(deps): bump

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

* chore(deps): bump semver

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

* chore(deps): bump cors

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 12:39:53 -03:00
Manuel Vogel
d1e97a3fd8 fix: brew multiple archives on one tap (#1153)
* fix: tmp simplify

* refactor: brew tests for mutiple archives per os

* feat: adds keep latest goarm version and uses it for brew

* chore: adapts golden brew test file for arm version

* test: brew for multiple arm versions

* refactor(test): brew for multiple arms

* docs: updates homebrew

* Revert "fix: tmp simplify"

This reverts commit 946a2fa1b1.

* feat: adds goarm version to brew

* fix: filter chain for one goarm version

* chore: removes unused keep latest arm version filter

* refactor: brew tests

* fix: removes test for keep latest arm version

* docs: updates homebrew for goarm property

* chore: updaes err msg for brew multiple archives same os
2019-09-26 21:46:05 -03:00
dtluna
eb40d8682b feat: gitea release support (#1114)
* adds gitea release support
* closes #1106
2019-08-26 09:31:38 +02:00
Manuel Vogel
e92bbe32ce feat: full gitlab support for brew and scoop (#1084)
* makes context tokentype a public var

* passes artifacts object into client upload function. extracts gitlab upload hash from url

* adds gitlab url to brew config

* build brew formula depending on token type

* fixes client for release tests

* fixes exiting brew tests

* fixes scoop test with dummy client adaption

* uses new artifact upload hash

* fixes brew usage

* updates gitlab createFile for brew

* fixes logging for non-existing file in gitlab logging

* fix: gitlab createFile

* fix: removes encoding from gitlab create and update file opts

* fix: gitlab upload and artifact set upload hash

* fix: linter

* changed artifact item to a pointer in ctx

* docs: updates homebrew

* feat: enables scoop for gitlab release

* fix: scoop panic for pointer access

* chore: rename formula build func for brew

* chore: brew removes comments

* fix: brew tests

* test: updates brew tests

* docs: updates homebrew

* test: for token type not implemented for brew

* tests: for multiple linux builds

* fix: build artifacts are pointer in scoop

* test: for scoop and gitlab

* test: for artifacts set upload hash

* adds missing files after adaption

* chore: removes and clarifies comments

* fix: moves artifact upload hash to extra map

* adds comment why we initialize the extra map
2019-08-13 15:28:03 -03:00
Carlos Alexandro Becker
516c348f6e
clean: remove deprecated docker options (#1098)
* clean: remove deprecated docker options

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

* ci: gocenter is slowwww

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

* clean: remove uneeded test

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

* Revert "ci: gocenter is slowwww"

This reverts commit 7e4b1eb244.
2019-08-02 21:03:54 -03:00
Carlos Alexandro Becker
7cab12cf74
fix: close config file (#1099)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-02 18:20:59 -03:00
Carlos Alexandro Becker
844f95a2d0
fix: pluralize blob in the config file (#1095)
* fix: pluralize blob in the config file

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

* test: added tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-02 16:17:38 -03:00
Carlos Alexandro Becker
5c16574c8c
feat: multiple sign (#1088)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-07-21 18:46:46 -03:00
Carlos Alexandro Becker
4541fd9f20
feat: blob kms support (#1056)
* feat: blob kms support

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-07-12 10:10:22 -03:00
Carlos Alexandro Becker
56c0cf0699
feat: update nfpm (#1063)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-06-29 12:26:01 -03:00
Manuel Vogel
eb7ba2a294 feat: add gitlab for releases (#1038)
* outlines gitlab client integration

* makes client parameter more explicit

* adds gitlab url to config

* changes releaseID to string to adapt to gitlab

* updates to latest gitlab client lib 0.18

* fixes copy paster in gitlab upload func

* fixes gitlab typo in config

* adds gitlab token to env and context

* release now uses the client factory method

* skips brew pipe if it is not a github release

* add github tokentype to publish tests

* skips scoop pipe if it is not a github release

* corrects brew skip msg

* adds gitlab token to main test

* adds gitlab to release docs

* validates config and errors accordingly

* adapt release pipe name to include gitlab

* fixes gitlab client after testing

* moves not-configured brew and scoop pipe checks as first check

* adds more debug to gitlab client

* adapts changelog generation for gitlab markdown

* adds debug log for gitlab changelog

* env needs to run before changelog pipe

* moves gitlab default download url to default pipe

* moves multiple releases check to from config to release pipe

* release differs now for github and gitlab

* adds debug gitlab release update msgs

* moves env pipe as second after before because it determines the token type other pipes depend on

* adaptes error check on gitlab release creation

* Revert "adaptes error check on gitlab release creation"

This reverts commit 032024571c.

* simplifies gitlab client logic. removes comments

* skips tls verification for gitlab client if specified in config

* updates the docs

* adds clarification that brew and scoop are not supported if it is a gitlab release

* fixes copy paster in release.md

* adds missing blob pipe in defaults and publish due to missing in merge

* updates comment in gitlab client
2019-06-29 11:02:40 -03:00
Tom Payne
c9546ec81b feat: add support for completer in snaps (#1055)
* feat: add support for completer in snaps

* test: add completer test
2019-06-22 22:37:55 -03:00
Carlos Alexandro Becker
1ef9906e04
feat: multiple brew / linuxbrew (#1043)
* feat: multiple brew / linuxbrew

* feat: multiple brew / linuxbrew

* test: added missing tests

* docs: brews

* docs: deprecate brew

* test: fix tests

* fix: fmt

* test: fix tests
2019-06-10 10:35:19 -03:00
Carlos Alexandro Becker
60b9584361
feat: id filter on s3/blob pipes (#1042)
* docs: deprecate s3 in favor of blob

* feat: id filter on s3/blob pipes

* fix: close res.body
2019-06-09 16:51:24 -03:00
C123R
73b74a3169 feat: add support for pushing artifacts to cloud storage provider( S3, Azure Blob, GCS) (#1036)
* feat: adding support to push artifacts to AWS S3,Azure Blob and Google Cloud Storage

readme for blob publisher

test: add unit test for blob using testify and mockery

test: add unit test for publish method

fix: openbucket instance initialization

remove unwanted packages: go mod tidy

test: add missing unit test for publish method

* doc: add missing comment for func

* fix: add accidental delete file

* fix : add missing Snapcrafts project

* fix: unit test for Azure blob

* fmt: rewrite if-else-if-else chain to switch statement and fix golangci-lint reporeted issue

* fmt: fix linter reporeted issues

fmt: rewrite if-else-if-else chain to switch statement and fix golangci-lint reporeted issue

fmt: linter fix

* test: fix typo in test error string

* feat: add support to provider folder inside bucket, resolves discussed comments
2019-06-05 10:51:01 -03:00
Carlos Alexandro Becker
d355350f63
fix: nfpm id (#1030)
* fix: nfpm id

* fix: import order
2019-05-29 09:13:52 -03:00
Carlos Alexandro Becker
3ec6e5f05b
feat: multiple snapcraft (#1025)
* feat: multiple snapcraft

* test: more tests
2019-05-27 12:47:05 -03:00
Carlos Alexandro Becker
c98d3881f7
refactor: id validations (#1015) 2019-05-07 07:18:35 -03:00
Carlos Alexandro Becker
19ed7564b4
feat: multiple nfpm (#1014)
* feat: multiple nfpm

* docs: improvements
2019-05-07 06:59:53 -03:00
Grachev Mikhail
2b8258f003 feat: add base key to snapcraft (#1011) 2019-04-18 17:21:40 -03:00
Grachev Mikhail
3da2b375c9 feat: add license to snapcraft (#1010) 2019-04-17 17:26:30 -03:00
Carlos Alexandro Becker
b8f5901265
feat: multiple archives (#942)
* feat: multiple archives

* fix: several things

* test: fixed

* fix: several things

* fix: archive id on the artifact

* fix: deprecated since

* docs: deprecations page improvements
2019-04-16 10:19:15 -03:00
Carlos Alexandro Becker
3d74b1fe8e
chore: removed commented code 2019-04-14 15:28:57 -03:00
Carlos Alexandro Becker
15475c6484
feat: build id (#1008)
* feat: build id

* test: added more tests

* fix: imports
2019-04-14 15:16:01 -03:00
Carlos Alexandro Becker
310bf450a8
fix: all envs allowed on build template (#992) 2019-04-09 09:15:05 -03:00
Carlos Alexandro Becker
7c712120bc
feat: added Plugs attribute to snapcraft.Metadata (#984, #980, #979)
* feat: added Plugs attribute to snapcraft.Metadata allowing plugs to be configured as plugs.<plug-name>.<attribute-name>

* fix (test): added snapcraft plugs configuration test

* fix: snapcraft Metadata to use correct data type for Plugs

* fix: refactor Snapcraft Plug configuration

* fix: test on newer snapcraft
hopefully

* docs: snap plugs
2019-03-14 09:56:11 -03:00
Roman Volosatovs
9081caba5e feat: ability to skip Docker update for pre-releases (#977) (#978) 2019-03-06 13:17:53 -03:00
Carlos Alexandro Becker
cf4aba68d3
feat: global env and template-able before hooks (#974)
* feat: global env

* docs: hooks templateable, global env

* docs: hooks templateable, global env

* feat: templas on before hooks

* docs: revert unwanted change

* fix: use os.environ too

* chore: travis

* fix: goreleaser.yml
2019-03-03 14:12:22 -03:00
Carlos Alexandro Becker
d2fa6d5821
feat: support gzip format (#959)
* feat: support gzip format

* fix: wrong .gz detection

* docs: gz + multiple build
2019-02-07 12:12:20 -02:00
Carlos Alexandro Becker
7e79db1cc2
feat: support different checksum algorithms (#951)
* feat: support different checksum algorithms

* feat: added more algorithms

Co-Authored-By: caarlos0 <caarlos0@users.noreply.github.com>

* fix: build
2019-02-04 17:27:51 -02:00
Andrew Hamilton
f7bfac8e6f feat: ability to skip Homebrew Tap update for preleases (#943)
- Updates Homebrew config to make "SkipUpload" a string so that it can
  contain more than true or false values. New available options are
  "true", "false" and "auto".
- Adds a new check in Homebrew publish to see if it should skip due to a
  prerelease and "SkipUpload" set to auto.
- Adds a new test to make sure that tap publishing is skipped when set
  to "auto" and a prerelease semver is provided.
- Updates documents to add information about the new "auto" option for
  "SkipUpload".
2019-01-30 09:28:05 -02:00
Carlos Alexandro Becker
60e54a1368
refactor/fix: improved CLI (#937)
* refactor: added middleware for action logs/error handling

* refactor: moved custom changelog load from main.go

* fix/refactor: CLI improvements

* test: do not pollute ./dist
2019-01-22 01:56:16 -02:00
Carlos Alexandro Becker
e13a3319bb feat: support skip tls on github cli 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
59f10ad083 clean: removed deprecated git.short_hash option 2019-01-19 18:14:32 -02:00
Carlos Alexandro Becker
df831077e5 fix: improved semver parsing 2019-01-19 17:33:33 -02:00
Harry Bagdi
98f22d7882 feat: allow skipping changelog generation
In some cases, changelog or release notes do not need to be compiled for
various reasons.
This commit adds an option to Skip building the changelog.

Fix #888
2019-01-19 13:03:49 -02:00
Carlos Alexandro Becker
cdfaae9b28
feat: support multiple binaries on docker (#919)
* feat: support multiple binaries on docker

* test: docker: fixed to use binaries

* refactor: several docker pipe improvements

* fix: tag templates

* test: fix defaults test

* fix: breaking: remove .Binary, .Os, .Arch support from docker image_templates

* fix: lint issues
2019-01-11 16:27:39 -02:00
Federico G. Schwindt
d10c4f4f07 feat: add custom_block to brew formula generation (#906)
This allows authors to specify things such as devel, head and more.
See
https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#advanced-formula-tricks
for details.
2018-12-30 00:06:54 -02:00
Felix Gläske
71abba61c3 feat: set github as pre-release if tag has a pre-release indicator (#871)
* Add check if tag contains indicator for pre release

* update release.md docs
2018-11-29 16:42:14 -02:00
fifi
e794eaf67f feat: add custom_require to brew formula generation
Due to the linked changes in homebrew deprecating "unused" download
strategies and the suggested workaround of adding a custom
"require_relative" I have added the ability to specify a ruby filename
in the brew specification

My use case is to continue using the GitHubPrivateRepositoryDownloadStrategy
without a deprecation warnings on every brew install.

brew deprecation:
599ecc9b5a (diff-ad9201cdd3b6f948345629ad812cd5bd)

suggested workaround:
https://github.com/Homebrew/brew/issues/5074#issuecomment-429274286
2018-11-23 10:26:06 -02:00
Carlos Alexandro Becker
18b8be6818 feat: support custom wrap directory
closes #728
2018-11-14 09:50:18 -02:00
Carlos Alexandro Becker
6c349c1759 fix: linter fixes 2018-11-08 09:40:23 -02:00
Carlos Alexandro Becker
6da57e496a chore: goimports 2018-11-06 11:24:57 -02:00
Carlos Alexandro Becker
6f312b993b chore: move defaulter to pkg, so godownloader can use it 2018-10-26 11:17:12 -03:00
Carlos Alexandro Becker
3d87275c09 fix: allow to publish snaps 2018-10-20 17:25:18 -03:00
Albert Salim
ae2e6ddc0e feat: Add support image templates
Docker config takes a list of image templates as image specification.
Existing config with image and tag templates are still accepted,
but will display deprecation notice.

Either image templates or image + tag templates is supported,
but not both at the same time.

This will also support publishing to multiple docker registries (#832).

Deprecated:
- `docker.image`
- `docker.tag_templates`
2018-10-20 13:15:15 -03:00
Albert Salim
ca2aafa367 feat: Add support for publishing to additional docker registries
Created a list of registries based on the docker image name and
additional registries. Image is then tagged with all permutations
of registry and tags.

See #832
2018-10-20 13:15:15 -03:00
Carlos Alexandro Becker
748d97ef22 feat: git remote url in the template engine 2018-10-04 23:23:31 -03:00
Carlos Alexandro Becker
af99acf244 feat: add new template fields 2018-10-04 09:23:06 -03:00
Albert Salim
94f88bac84 feat: Add templating support for docker build-flags
I enhanced `BuildFlagTemplates` field in Docker image config to accept
templates. Build flags are tested by checking for images created with
labels applied through templates.

See #813
2018-10-03 10:51:01 -03:00
Albert Salim
c773e57165 feat: Add support for docker build-flags
I added `BuildFlags` field to Docker image config. Docker pipe is
updated to append build flags to the `docker build` command.
Build flags are not validated, leaving it Docker to error
when given an unknown flag.

See #813
2018-10-03 10:51:01 -03:00
Carlos Alexandro Becker
652645b3bf
feat: artifactory checksum header (#772)
* feat: artifactory checksum header

* fix: merge fixes
2018-10-01 16:52:16 -03:00
Carlos Alexandro Becker
aded99f621
feat: scoop: accept name/project name (#811)
* feat: scoop: accept name/project name

* fix: added todo to fix an issue
2018-09-30 11:04:32 -03:00
Pablo Lalloni
4728741b29 fix: move certificates setting to pipelines 2018-09-13 20:47:29 -03:00
Pablo Lalloni
1948df1a55 feat: support setting trusted x509 certificates for tls clients 2018-09-13 20:47:29 -03:00
Carlos Alexandro Becker
236aabdff5
fix: gosec lint issues 2018-09-04 09:48:22 -03:00
Carlos Alexandro Becker
431c28b2bd
fix: gosec lint issues 2018-09-04 09:26:45 -03:00
Grachev Mikhail
da882e87fc feat: Add persist definition to scoop manifest (#776) 2018-08-25 17:24:42 -03:00
Grachev Mikhail
134e08cc67 feat: Add url template to scoop pipeline (#768) 2018-08-20 22:06:55 -03:00
Carlos Alexandro Becker
a04724d6b8
clean: removed deprecated docker options (#759)
* clean: remove fpm completely

* clean: remove docker tag_template and latest
2018-08-15 10:49:28 -03:00
Carlos Alexandro Becker
f0b7608f4d
clean: remove fpm completely (#758) 2018-08-15 09:56:49 -03:00
Carlos Alexandro Becker
64b1f14a86
refactor: better code organization (#757)
* refactor: merging archive in the same repo

* refactor: merging archive in the same repo

* refactor: better organizing packages

* refactor: fixing renames

* fix: new dep version

* fix: makefile

* fix: zip/tar tests

* fix: gitigonore

* fix: s3 tests

* fix: archive test
2018-08-14 23:50:20 -03:00
Julien Duchesne
f0413af071 fix: Zip files were no longer being compressed (#748) 2018-08-06 15:37:37 -03:00
Carlos Alexandro Becker
32fd1e158c
refactor: merging archive in the same repo (#746)
* refactor: merging archive in the same repo

* refactor: merging archive in the same repo
2018-08-05 10:23:39 -03:00