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

364 Commits

Author SHA1 Message Date
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
Carlos Alexandro Becker
f656e68ef9
fix: non-templateable field as default build.id (#1060)
* fix: non-templateable field as default build.id

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

* test: added test for build.id

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

* test: fixed test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-06-28 08:52:10 -03:00
C123R
ce5ade64c1 fix: blob provider authentication issues for default aws mechanism (#1061)
* fix: blob provider authentication issues for default aws mechanism

* remove commented code

* docs: update the authentication doc

* fix: linter issues
2019-06-28 08:51:19 -03:00
Carlos Alexandro Becker
ef6e13a61b
fix: brew tmpl (#1057)
* fix: brew tmpl

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

* fix: compile

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

* fix: compile

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-06-26 14:12:33 -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
Grachev Mikhail
3f082c9252 fix: generate valid brew formula (#1048)
closes #1047
2019-06-11 09:23:42 -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
Carlos Alexandro Becker
7ee486fc9b
fix: build with same binary name (#1041) 2019-06-09 12:14:30 -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
Tobias Kündig
3eec7e3e9d fix: wrap snapcraft command in TrimSpace (#1035) 2019-05-29 16:08:48 -03:00
Carlos Alexandro Becker
1a515881b2
chore: added todo 2019-05-29 09:34:44 -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
7e809382df
fix: armhf on arm v6 (#1027)
* fix: armhf on arm v6

* fix: armel is arm5, so fix test
2019-05-29 09:09:52 -03:00
Carlos Alexandro Becker
86c5b93260
feat: improved version command (#1028)
* feat: improved version command

* fix: typo

* test: fixed failing tests
2019-05-27 23:59:33 -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
d6ea5f9af3
test: improved s3 pipe tests (#1021)
* test: improved s3 pipe tests

* chore: using only t.Log and variants

* fix: uneeded rm --force
2019-05-22 00:40:31 -03:00
Carlos Alexandro Becker
d9e89f69c7
feat: filter PUT by ID (#1016) 2019-05-17 10:25:01 -03:00
Tobias Kohlbau
4180aa3f6a fix: add env expansion within signage (#1020)
Signed-off-by: Tobias Kohlbau <tobias@kohlbau.de>
2019-05-17 10:24:08 -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
73a08d5d49 feat: update go-github (#1012) 2019-04-22 09:44:08 -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
5df1cac60a
feat: templates and inherit global env on build hooks (#1007)
* feat: templateable hooks

* test: improved test

* docs: docs about templateable hooks

* test: improve test

* test: skip test that only fails on travis
2019-04-14 15:16:20 -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
1a971c0d9a
test: fixed git dirty test 2019-04-14 14:41:24 -03:00
Carlos Alexandro Becker
a62314d9bb
fix: small error msg improvement
refs #1005
2019-04-14 14:16:53 -03:00
Nico Esteves
2d5ea5010e fix: signature path and upload (#1003)
The signature Path was assumed to be at the root of dist without
taking into account the target of the original artifact. This made the
upload of signature fails with file not found errors.

The signature Name was the actual signature filename and didn't take
into account the target and would lead to conflicts when flattening
the paths for upload. This change derives the Name from the original
artifact Name instead.
2019-04-10 10:32:10 -03:00
Simon Barendse
2de196a745 fix: use bin name instead of bin path to set snap app config (#1002)
* fix: use bin name instead of bin path to set snap app config

* feat: add testcase for snap with binary in dir
2019-04-09 12:14:48 -03:00
Carlos Alexandro Becker
310bf450a8
fix: all envs allowed on build template (#992) 2019-04-09 09:15:05 -03:00
Simon Barendse
ce69ee5316 fix: use the filename of the binary in snapcraft (#1001)
* fix: use the filename of the binary in snapcraft

When builds.binary is a path, only use the filename as the name
of the snapcraft app and as the command, instead of the full path.

* docs: use a path in the binary name
2019-04-09 09:14:28 -03:00
Carlos Alexandro Becker
d24c342ca0
fix: lint issue 2019-04-09 08:54:16 -03:00
Grachev Mikhail
dfd1e6a662 chore: combile similar type params (#993) 2019-03-31 14:11:35 -03:00
Grachev Mikhail
7de278535a fix: use constants for http methods instead of strings (#994) 2019-03-31 14:11:13 -03:00
Grachev Mikhail
7230b1cd31 test: remove unused parameter (#995) 2019-03-31 14:10:51 -03:00
Grachev Mikhail
d402fa0878 test: add additional error checking to tests (#996) 2019-03-31 14:10:26 -03:00
Phil DeMonaco
3fbba1b594 test: validate arch map for linuxpp64/ppc64le (#988)
I didn't notice the go testing framework when I made the first pull
request so these were left out. Not a big deal either way but we might
as well have complete tests.
2019-03-20 10:27:49 -03:00
Carlos Alexandro Becker
3395bf1719
fix: improve linux.Arch
should affect snapcraft and nfpm
2019-03-19 21:45:34 -03:00
Carlos Alexandro Becker
486d5303fd
fix(snapcraft): improve logs 2019-03-19 21:45:08 -03:00
Carlos Alexandro Becker
ec5dfaf9d8
fix(nfpm): improve logs 2019-03-19 21:44:53 -03:00
Carlos Alexandro Becker
d91a3239ec
test: make aws session test more reliable 2019-03-19 21:34:37 -03:00
Phil DeMonaco
adb6b947e4 feat: linux compatible arch for ppc64/ppc64le (#987)
Maps linuxppc64 and linuxppc64le to the standard ppc64 and ppc64le
nomenclature used in packages for these architectures.
2019-03-19 21:02:12 -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
809ef10fdd
fix: custom changelog and changelog.skip (#975) 2019-03-03 14:00:00 -03:00
Kamil Samigullin
b84f6cdcb2 update retry package version (#972) 2019-03-03 13:16:01 -03:00
Carlos Alexandro Becker
844676121b
bump: retry to v3 (#970) 2019-02-27 13:43:03 -03:00