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

191 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
449ed95bbe
Revert "fix: getTag return incorrect tag, if we have more than 1 tag for 1 commit (#1164)"
This reverts commit 2403a40979.
2019-10-21 09:09:11 -03:00
Carlos Alexandro Becker
4e71977e34
Revert "feat: git diff when dirty (#1178)"
This reverts commit 39d07c375d.
2019-10-20 11:10:31 -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
2cc40fad1e
fix: update nfpm
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-12 16:42:54 -03:00
Carlos Alexandro Becker
21843b5a90
ci: fix linter issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-09 16:07:51 -03:00
Andrii Soldatenko
2403a40979 fix: getTag return incorrect tag, if we have more than 1 tag for 1 commit (#1164)
* fix strategy of getting latest tag

* add git -c "versionsort.suffix=-"

* fix test

* fix tests

* add more details about change
2019-10-07 13:58:19 -03:00
Carlos Alexandro Becker
39d07c375d
feat: git diff when dirty (#1178)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 17:56:53 -03:00
Carlos Alexandro Becker
423308443c
fix: reject docker.files as . or inside dist (#1175)
* fix: reject docker.files as . or inside dist

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

* fix: deprecated method

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 17:09:51 -03:00
Carlos Alexandro Becker
792b883f59
fix: docker: skip push skips other builds (#1177)
* fix: skip aware semerrgroup

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

* fix: docker: skip push skips other builds

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-06 15:53:38 -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
Pierre Fersing
e6c8682738 Use Version instead of Git tag to for .deb/.rpm (#1157) 2019-10-05 14:58:46 -03:00
Carlos Alexandro Becker
9d5f36f21b
feat: wasm support (#1159)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-01 16:00:44 -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
Carlos Alexandro Becker
eb1a122199
fix: lint issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-09-23 18:15:57 -03:00
Carlos Alexandro Becker
da04434939
docs: added TODO 2019-09-09 09:42:11 -03:00
Dawid Dziurla
ccbd79250e fix: actually support arm (#1140) 2019-09-09 09:34:52 -03:00
Luit van Drongelen
705f66d258 fix: copy into DockerImage Artifact (#1134)
Since #1110 the artifacts are passed by reference, causing the previous
code to edit the Artifact in place, _and_ add it to the list.

Fixes: #1133
2019-09-03 13:27:16 -03:00
Carlos Alexandro Becker
c2918e4eec
fix: improve error msg
closes  #1103

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-31 10:29:24 -03:00
Carlos Alexandro Becker
7cb8d622f5
fix: race condition on brew pipe (#1121)
fixes #1120

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-31 10:27:04 -03:00
Manuel Vogel
2da118a296 fix brew and scoop for disabled release (#1128)
* fix: mod tidy

* fix: skips brew pipe if release is disabled

* fix: skips scoop pipe if release is disabled

* fix: mod tidy
2019-08-28 20:34:09 -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
Grachev Mikhail
de5676e833 feat: support arm for linuxbrew (#1113) 2019-08-13 13:37:10 -03:00
Grachev Mikhail
4100f65d71 test: add error handling (#1111)
closes #1047
2019-08-13 10:28:03 -03:00
Grachev Mikhail
7a2b332554 clean: remove unused code (#1112) 2019-08-13 10:24:17 -03:00
Carlos Alexandro Becker
b477ffa095
refactor: pointer to artifact (#1110)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-12 17:44:48 -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
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
8286402e3e
fix: better duplicate ID message
refs #1090

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-07-27 10:55:56 -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
04f17669cc
feat(snap): allow previous in review process (#1070)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-07-20 18:31:04 -03:00
Carlos Alexandro Becker
954638d5c3
fix: set bottle unneeded (#1089)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-07-20 14:27:25 -03:00
Kei Arima
ce9b2c96d0 fix: breaking: use artifact.Name for the blob key instead of artifact.Path (#1082) 2019-07-16 18:08: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
Thomas Gosteli
249657eb0b fix(nfpm): propagate epoch config to nfpm (#1076) 2019-07-09 09:58:21 -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
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
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