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

515 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
844676121b
bump: retry to v3 (#970) 2019-02-27 13:43:03 -03:00
Carlos Alexandro Becker
2a35ffbfbe
chore: added todo 2019-02-26 18:04:41 -03:00
Carlos Alexandro Becker
be1e9ce230
fix: interface 2019-02-26 17:57:04 -03:00
Carlos Alexandro Becker
adcc4524da
fix: suppress diffs on git show (#955) 2019-02-06 17:51:09 -02:00
Andrew Martin
a6b60ce74b fix: parse commit hash of GPG signed commit (#953) 2019-02-06 17:14:04 -02:00
Iskander (Alex) Sharipov
ba09765bfa fix: brew strings.HasPrefix args order (#949)
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-02-04 17:28:36 -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
d183891332
fix: add do not edit header to brew formulas 2019-01-27 16:37:32 -02:00
Carlos Alexandro Becker
bc8687b302
fix: docker tests
closes #941
2019-01-26 11:26:34 -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
17a894981f
fix: CLI improvements (#936)
* fix: CLI improvements

* fix: CLI improvements

* fix: CLI improvements

* chore: lint
2019-01-22 01:12:17 -02:00
Michael
d730f3e735 improve tests 2019-01-21 22:48:42 -02:00
Michael
267145bbe4 fix: improve code 2019-01-21 22:48:42 -02:00
Michael
203066ffa0 feat: add tests 2019-01-21 22:48:42 -02:00
Michael
0aa80eca02 feat: allow use template for s3 bucket 2019-01-21 22:48:42 -02:00
Carlos Alexandro Becker
4a8d526f47 fix: do not override release notes 2019-01-19 18:47:59 -02:00
Carlos Alexandro Becker
f07bc40251 fix: lint 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
55169a8c60 fix: nil transport 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
6a87444e5f fix: nil transport 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
d95b7f9adc fix: cast 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
0ef202cb74 chore: unrequired if 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
e13a3319bb feat: support skip tls on github cli 2019-01-19 18:26:01 -02:00
Carlos Alexandro Becker
742c8d03aa clean: removed uneeded param 2019-01-19 18:14:32 -02:00
Carlos Alexandro Becker
59f10ad083 clean: removed deprecated git.short_hash option 2019-01-19 18:14:32 -02:00
Carlos Alexandro Becker
ed2ca57bd5 clean: unused err 2019-01-19 17:33:33 -02:00
Carlos Alexandro Becker
a31abde2e9 clean: remove uneeded extra tag check 2019-01-19 17:33:33 -02:00
Carlos Alexandro Becker
df831077e5 fix: improved semver parsing 2019-01-19 17:33:33 -02:00
Carlos Alexandro Becker
a43c653254 test: docker: improve image label checks 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
ef0bb10863 feat: support templates on docker.binaries 2019-01-17 22:47:14 -02:00
Carlos Alexandro Becker
7d7951a223
feat: template on flags (#923) 2019-01-17 10:50:00 -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
Carlos Alexandro Becker
a0255abec6
fix: prerelease auto with repo set
closes #917
2019-01-10 17:09:46 -02:00
Carlos Alexandro Becker
d619efdd94
test: added failing test for #917 2019-01-10 17:08:08 -02:00
Carlos Alexandro Becker
1fdeba7369
chore: added debug log to release 2019-01-10 16:06:13 -02:00
Carlos Alexandro Becker
23df4b562c
fix: support multiple binaries in scoop pipe (#909)
* fix: support multiple binaries in scoop pipe

* fix: lint
2019-01-05 12:30:26 -02:00
Carlos Alexandro Becker
850205abf1
feat: back-reference build artifacts from archive artifact (#908) 2019-01-01 14:40:17 -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
Kamil Samigullin
2cc473280f use retry package to repeat uploads (#905) 2018-12-29 20:14:05 -02:00
Carlos Alexandro Becker
47f1fd81ea
fix: gofmt 2018-12-28 20:16:16 -02:00
Carlos Alexandro Becker
7255eb7461
Merge remote-tracking branch 'origin/master' 2018-12-28 19:19:02 -02:00
Carlos Alexandro Becker
8e42ab62a5
fix: better retry upload (#904)
* Revert "fix: retry upload (#900)"

This reverts commit 6e09a19a83.

* fix: better upload retry

* fix: fmt
2018-12-28 19:17:40 -02:00
Carlos Alexandro Becker
6fb427e5c8
Revert "fix: retry upload (#900)"
This reverts commit 6e09a19a83.
2018-12-28 18:58:11 -02:00
Carlos Alexandro Becker
6e09a19a83
fix: retry upload (#900)
* fix: retry upload

* fix: goimports
2018-12-23 11:41:36 -02:00
Carlos Alexandro Becker
15d00f2900
fix: pipe name 2018-12-22 19:28:38 -02:00
Carlos Alexandro Becker
bf68277b50 fix: improvements on docker extra_files 2018-12-16 12:34:21 -02:00
Carlos Alexandro Becker
07d9855890 fix: tests 2018-12-13 12:11:12 -02:00
Carlos Alexandro Becker
14e93c6390 fix: breaking: changed snapshot default name tmpl 2018-12-13 12:11:12 -02:00
Carlos Alexandro Becker
a69ef61d60 fix: snapshot version handling 2018-12-13 12:11:12 -02:00
Carlos Alexandro Becker
513473b446
fix: snapcraft: broken permissions 2018-12-12 18:32:22 -02:00
Carlos Alexandro Becker
7060eb8450
chore: small code improvements 2018-12-12 18:24:22 -02:00
Carlos Alexandro Becker
ab3bab15ce
refactor: simplified code 2018-12-04 11:36:51 -02:00
Tom Payne
14c7f06ca2 fix: pass missing arg to log.Warnf (#886) 2018-11-30 16:48:49 -02:00
Carlos Alexandro Becker
e7bec044a0
test: ignored err 2018-11-29 16:43:00 -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
Carlos Alexandro Becker
18efb4a5c2 fix: change defaults order 2018-11-25 18:25:38 -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
e966f9956a clean: removed unused method 2018-11-16 17:32:07 -02:00
Carlos Alexandro Becker
a17d51c350 test: increased coverage 2018-11-14 09:50:18 -02:00
Carlos Alexandro Becker
18b8be6818 feat: support custom wrap directory
closes #728
2018-11-14 09:50:18 -02:00
Carlos Alexandro Becker
ce267acabf fix: uniq files inside archive
refs #836
2018-11-11 19:31:05 -02:00
Carlos Alexandro Becker
7a6de727dd test: fixed 2018-11-11 18:59:25 -02:00
Carlos Alexandro Becker
8867356965 chore: remove log 2018-11-11 18:59:25 -02:00
Carlos Alexandro Becker
2dd00ae7a6 fix: do not allow several archives with the same name 2018-11-11 18:59:25 -02:00
Carlos Alexandro Becker
a6bef50b0f fix: archives with windows paths 2018-11-08 09:52:07 -02:00
Carlos Alexandro Becker
6c349c1759 fix: linter fixes 2018-11-08 09:40:23 -02:00
Carlos Alexandro Becker
aef63d2fcb
chore: brew: better join impl 2018-11-07 14:15:07 -02:00
Carlos Alexandro Becker
a273a978f2 fix: brew formula path on windows 2018-11-06 11:24:57 -02:00
Carlos Alexandro Becker
67482044d2 fix: defaults when release is disabled
closes #861
2018-11-03 15:37:51 -03:00
Carlos Alexandro Becker
498782e524
chore: log output 2018-11-03 15:25:01 -03:00
Carlos Alexandro Becker
e1258d381b test: fix a docker test relying on /tmp 2018-10-30 23:50:55 -03:00
Carlos Alexandro Becker
bd5d853f60 test: fix build tests 2018-10-30 23:50:55 -03:00
Carlos Alexandro Becker
58de70c29e chore: do not need to get output 2018-10-30 22:24:20 -03:00
Carlos Alexandro Becker
8348301b3e fix: gpg: debug 2018-10-30 22:24:20 -03:00
Carlos Alexandro Becker
19cde27da9 test: gpg: fixed local execution 2018-10-30 22:24:20 -03:00
Carlos Alexandro Becker
53360bc58f
chore: log 2018-10-27 13:38:24 -03:00
Carlos Alexandro Becker
57d02172bf
fix: brew and scoop should be last to publish
refs #854
2018-10-27 13:37:07 -03:00
Garcia, Julio C
2da661bc77 fix: improve log output #845
Fixed missunderstanding
2018-10-27 13:36:58 -03:00
Garcia, Julio C
0f6d8daa05 fix: improve log output #845
Removed the "creating" prefixes.
2018-10-27 13:36:58 -03:00
Carlos Alexandro Becker
846e26f48b test: disable colors on tests 2018-10-27 13:34:16 -03:00
Carlos Alexandro Becker
0dbce75983 test: disable colors on tests 2018-10-27 13:34:16 -03:00
Carlos Alexandro Becker
9b0a75d24d test: disable colors on tests 2018-10-27 13:34:16 -03: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
3010023b3a fix: docker: build several tags
avoid needing to call docker tag later
2018-10-25 19:39:39 -03:00
Jonathan Lloyd
254a1cfab8 fix: Bring back docker release notes
Docker image names were not being added to the release notes
because the Github release step was happening earlier in the
pipeline than the docker release itself (so no artifacts had
been added to the context). This patch re-orders the pipeline
and adds a comment to warn against this happening again.

Fixes: #846
2018-10-25 10:13:33 -03:00
Carlos Alexandro Becker
84fdac7f2b
chore: improved log 2018-10-20 17:54:41 -03:00
Carlos Alexandro Becker
75c999ac73
chore: added a TODO 2018-10-20 17:47:55 -03:00
Carlos Alexandro Becker
f7268a0979
fix: deploy goreleases to snap store 2018-10-20 17:41:31 -03:00
Carlos Alexandro Becker
32d9440dff test: added more tests 2018-10-20 17:25:18 -03:00
Carlos Alexandro Becker
6310b8c12d fix: lint 2018-10-20 17:25:18 -03:00
Carlos Alexandro Becker
3d87275c09 fix: allow to publish snaps 2018-10-20 17:25:18 -03:00
Carlos Alexandro Becker
04ee42caed feat: publish snaps 2018-10-20 17:25:18 -03:00
Carlos Alexandro Becker
fac4b621b0 feat: publish snaps 2018-10-20 17:25:18 -03:00
Carlos Alexandro Becker
24c6401341 test: skip publish 2018-10-20 14:42:46 -03:00
Carlos Alexandro Becker
76b18fb554 chore: fix log 2018-10-20 14:42:46 -03:00
Carlos Alexandro Becker
21084567fc refactor: docker push moved to publish 2018-10-20 14:42:46 -03:00
Albert Salim
b8d0f29099 chore: go fmt 2018-10-20 13:15:15 -03:00
Albert Salim
b688e1f28c feat: Add support image templates with backward compatibility
Docker pipe supports either image templates or image with tag templates.
Image template must be configured, no default is provided.
If image name is still used, provide default for tag templates,
for backward compatibility.
2018-10-20 13:15:15 -03:00
Albert Salim
5af006f415 refactor: Simplify docker test
Remove unnecessary fields in `TestRunPipe` test cases
2018-10-20 13:15:15 -03:00
Albert Salim
64ce2d5bd6 chore: Remove unused function 2018-10-20 13:15:15 -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
2bade44c73 refactor: artifactory: pipe -> publisher 2018-10-16 23:01:52 -03:00
Carlos Alexandro Becker
ad11351902 refactor: fix tests 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
089731afc4 refactor: (s3/http): pipe -> publisher 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
0b04e454fc test: fix 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
dd81fec3dd refactor: release: pipe -> publisher 2018-10-16 22:20:53 -03:00
Carlos Alexandro Becker
6d6d6ece8f test: add more tests 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
23eb2c7756 fix: publish skip handling 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
c449328428 fix: improved publish output 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
5474d1ede7 wip: publish 2018-10-12 14:55:04 -03:00
Carlos Alexandro Becker
71aba28e18 chore: more logs 2018-10-10 13:27:53 -03:00
Carlos Alexandro Becker
9628eb8f89 chore: improved log output 2018-10-10 13:27:53 -03:00
Alan Scherger
6c79a6c51a fix: be explicit when we query git for tags
When Jenkins is configured with 'Check out to matching local branch' the branch and tag name will conflict.
If we use explicit references to tags, then life is much better.

This patch also replaces our manual 'tag or not' boolean with a regex to check if the return is a SHA1.
If it is not a SHA1, it is assumed to be a tag. Hopefully this helps with future maintainability.
2018-10-06 22:21:46 -03:00
Alan Scherger
f6a7fb308c feat: image names can ontain template variables
This now allows us to use things like the ProjectName as variables
in our docker image name. This is especially helpful when trying to
make the `.goreleaser.yml` as generic as possible.
2018-10-05 13:43:19 -03:00
Carlos Alexandro Becker
ba77abe07c chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
6a035b83e9 chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
3c72ad1081 chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
71171ba222 chore: make output less verbose 2018-10-05 10:38:16 -03:00
Carlos Alexandro Becker
71df84f829 refactor: added publish pipe 2018-10-05 09:42:32 -03:00
Carlos Alexandro Becker
5c63f88290 test: add more tests 2018-10-04 23:23:31 -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
Carlos Alexandro Becker
0ebf43a0fd
chore: go fmt 2018-09-19 13:52:23 -03:00
He Liu
281632fe6c fix: github.com/Masterminds/semver import path (#808)
* fix import path casing in Mastermind/semver

* fix import path in Gopkg.lock
2018-09-19 13:51:52 -03:00
Carlos Alexandro Becker
4206de324e
fix: added more logs 2018-09-18 10:14:30 -03:00
Carlos Alexandro Becker
817f0a7a13 fix: remove go generate 2018-09-16 21:46:21 -03:00
Carlos Alexandro Becker
a6965e6272 fix: remove dep on stringer 2018-09-16 21:46:21 -03:00
Carlos Alexandro Becker
c3a6c3f40d chore: add debug to http put
refs ##790
2018-09-13 22:03:51 -03:00
Carlos Alexandro Becker
ac3dabbe4c
Merge branch 'master' into organizing 2018-09-13 21:38:09 -03:00
Pablo Lalloni
91dc94aae5 fix: remove windows cert pool support 2018-09-13 20:47:29 -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
39de856eb4
refactor: better package organization 2018-09-12 14:18:01 -03:00
Carlos Alexandro Becker
3d8725caee
chore: removed file that shouldnt have been commited 2018-09-12 13:36:31 -03:00
Carlos Alexandro Becker
bd5b15dc6b
docs: package graph 2018-09-12 13:34:26 -03:00
Mikhail Grachev
e08a473b8d feat: add hash to scoop manifest 2018-09-10 09:10:10 -03:00
Pablo Lalloni
33a25e05a9 fix: remove location header requirement on http put responses (#794) 2018-09-10 09:08:54 -03:00
Carlos Alexandro Becker
0b28e3372d
fix: s3 test 2018-09-04 09:34:09 -03:00
Carlos Alexandro Becker
431c28b2bd
fix: gosec lint issues 2018-09-04 09:26:45 -03:00
Carlos Alexandro Becker
3a4e41096f
fix: added skip log to s3 2018-09-04 09:26:08 -03:00
Igor German
99a9da4c3b feat: docker in docker support (#785)
* feat: docker in docker support

* fix: pr comments
2018-09-04 09:19:01 -03:00
Pablo Lalloni
93a0055d03 fix: Improve http test coverage 2018-08-25 18:24:34 -03:00
Carlos Alexandro Becker
99d5525c66
chore: lint fixes 2018-08-25 17:59:34 -03:00
Carlos Alexandro Becker
235fff7b8a
test: fix clear env on s3 tests 2018-08-25 17:47:05 -03:00
Krzysztof Grodzicki
8595a80384 refactor: extract aws session creation, add tests
To be able to write some tests in an easy way session creation logic has
been extracted. Added tests for configuration and different providers.

#754
2018-08-25 17:33:56 -03:00
Krzysztof Grodzicki
dc0e2bd766 feat: Add support for profile and assume an IAM role with MFA prompting
for token code on stdin when uploading to s3

In case when there are no credentials from provider chain session for S3
client is created with support for profile and assume an IAM role with
MFA prompting for token code on stdin

#754
2018-08-25 17:33:56 -03:00
Pablo Lalloni
991a1195ff feat: Allow to get http username from env (#777) 2018-08-25 17:26:06 -03:00
Grachev Mikhail
da882e87fc feat: Add persist definition to scoop manifest (#776) 2018-08-25 17:24:42 -03:00
Carlos Alexandro Becker
6217d1e90d
refactor: artifact checksum (#771) 2018-08-21 15:55:35 -03:00
Carlos Alexandro Becker
3678db8ade
fix: check if git is present in path (#769) 2018-08-20 23:18:43 -03:00
Carlos Alexandro Becker
3b4f48c2ff
refactor: scoop defaults 2018-08-20 22:20:04 -03:00
Grachev Mikhail
134e08cc67 feat: Add url template to scoop pipeline (#768) 2018-08-20 22:06:55 -03:00
Carlos Alexandro Becker
34e3f905c3
fix: multiple docker instances with the same extra files (#766)
* fix: multiple docker instances with the same extra files

* fix: removed unused seed param
2018-08-20 18:58:56 -03:00
Grachev Mikhail
e5c8000ff1 feat: copy all app metadata to default command (#762) 2018-08-20 09:15:09 -03:00
Carlos Alexandro Becker
838a2658d0
fix: build default binary name (#761) 2018-08-16 14:25:02 -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
Grachev Mikhail
a91c8fd185 feat: Add default command for snapcraft (#749) 2018-08-15 09:38:42 -03:00
Carlos Alexandro Becker
838c1cd50d
fix: revert unwanted change 2018-08-15 00:28:58 -03:00
Carlos Alexandro Becker
81959bb644
fix: method name 2018-08-15 00:28:16 -03:00
Carlos Alexandro Becker
815ffc2a83
docs: clarify hooks
closes #741
2018-08-15 00:28:16 -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
Jonathan Juares Beber
a12a8bc25c fix: typos (#743) 2018-08-01 09:59:57 -03:00
Grachev Mikhail
36bb63f86b feat: add url_template in brew section (#735) 2018-07-26 10:03:28 -03:00
Carlos Alexandro Becker
8e62dddd29
test: improved tests 2018-07-09 22:04:25 -07:00
Carlos Alexandro Becker
b6f6e227de
refactor: semerrgroup wraps errgroup with a semaphore 2018-07-09 21:38:00 -07:00
Carlos Alexandro Becker
ccdd761c50
Merge branch 'master' into sem 2018-07-09 21:11:51 -07:00
Carlos Alexandro Becker
c41b372f81
fix: broken binary name 2018-07-09 00:29:15 -07:00
Carlos Alexandro Becker
92632956d1
chore: fix lint issues 2018-07-09 00:16:40 -07:00
Carlos Alexandro Becker
495126ffd9
chore: format and lint fixes 2018-07-09 00:01:06 -07:00
Carlos Alexandro Becker
71717947d3
fix: using tmpl in build, git and go builder pkgs 2018-07-08 23:08:06 -07:00
Carlos Alexandro Becker
507ca12b9a
fix: using a map to hold template data 2018-07-08 22:35:44 -07:00
Carlos Alexandro Becker
b7690e6513
test: test for artifact-only key with no artifacts 2018-07-08 22:32:21 -07:00
Carlos Alexandro Becker
aae42e96d7
test: fix data race 2018-07-08 21:28:26 -07:00
Carlos Alexandro Becker
30feb1294f
docs: tmpl godoc 2018-07-08 21:13:09 -07:00
Carlos Alexandro Becker
fc80e6b799
refactor: global single name templating package 2018-07-08 20:47:30 -07:00
Carlos Alexandro Becker
846f5ead40
Merge remote-tracking branch 'origin/master' into sem 2018-07-04 01:39:55 -07:00
Carlos Alexandro Becker
31f0599e24
fix: data race on test 2018-07-04 01:37:32 -07:00
Carlos Alexandro Becker
bcfdb9a890
Merge branch 'master' into debug 2018-07-04 01:25:55 -07:00
Carlos Alexandro Becker
874f53dacb fix: several linter issues 2018-07-04 01:22:45 -07:00
Carlos Alexandro Becker
abe90e9f5f
refactor: simplified code 2018-07-03 23:44:51 -07:00
Carlos Alexandro Becker
9d4be131cf
fix: show git error on debug 2018-07-03 23:41:36 -07:00
Carlos Alexandro Becker
58d71a1c95
refactor: add a semaphore lib
Simple lib for better semaphore semanthics.
2018-06-25 17:00:00 -03:00
Pablo Lalloni
d41703227c fix: add internal/http tests 2018-06-25 10:01:31 -03:00
Pablo Lalloni
e1e1a9bf9c feat: improve selection of artifacts to upload 2018-06-25 10:01:31 -03:00
Pablo Lalloni
b863a43558 fix: reduce code duplication 2018-06-25 10:01:31 -03:00
Carlos Alexandro Becker
4fa9080885
chore: fix lint issues
refs #688
2018-06-19 15:53:14 -03:00
Carlos Alexandro Becker
d2e880cb2c
feat: allow environment variables in release name_template
closes #691
2018-06-06 21:39:41 -03:00
Eli Young
5252f74ade feat: Convert flag fields into lists
This allows users to specify different sets of compiler, assembler,
and/or linker flags for different packages. It also makes it possible to
specify generic flags that contain spaces. It does this while
maintaining compatibility with the old format of the fields in question
by up-converting bare strings into single-element lists.

Resolves #668
2018-05-15 08:12:11 -03:00
Carlos Alexandro Becker
8690ee07e5 fix: lint issues 2018-05-13 17:02:29 -03:00
Carlos Alexandro Becker
1c426847d9 feat: upload to s3 2018-05-13 17:02:29 -03:00
Carlos Alexandro Becker
38b81ffe7d fix: deprecation notices new url 2018-05-01 20:32:46 -07:00
Carlos Alexandro Becker
438e6e210a
Revert "feat: Create new tags for GitHub release (#643)"
This reverts commit 65ff5b771b.
2018-04-26 12:27:24 -07:00
Eli Young
46aa41e27e feat: Add asmflags and gcflags fields (#648) 2018-04-20 08:26:04 -03:00
holladay-io
65ff5b771b feat: Create new tags for GitHub release (#643)
I added the target_commitish to the release payload
so the tag will be created if it does not already exist.
This value will not be used if the tag already exists.
2018-04-18 21:15:51 -03:00
Erno Aapa
42fe5761f7 fix: Use right architecture for ARM packages
Previously when creating deb package for ARMv6 and ARMv7 the
architecture information were invalid in the generated package.
For example ARMv6 package got armhf architecture which is not right.
According to https://wiki.debian.org/ArmHardFloatPort,
armel is armv4t, armv5, armv6 and armhf is armv7 so updated
to use correct architecture.
2018-04-15 21:06:30 -03:00
Carlos Alexandro Becker
5a0b6c4608 fix: added time func to ldflags template 2018-04-15 20:32:52 -03:00
Carlos Alexandro Becker
7b45c9abbc
style: simplified time template func 2018-04-03 20:55:29 -03:00
Carlos Alexandro Becker
b2dd235614
style: simplified template code 2018-04-01 15:57:25 -03:00
Dominik Schulz
c0379ed858 feat: Provide time template func
This commit adds a customizable time function to the release name
template.
2018-04-01 15:19:32 -03:00
Carlos Alexandro Becker
8877c72abc
chore: better commit msgs for brew and scoop pipes (#605)
* style: moving commit msg to the pipe instead of the client

refs #604

* fix: better commit msg for scoop and brew
2018-03-10 14:13:00 -03:00
Carlos Alexandro Becker
76cfa61407
refactor: remove fpm in favor of nfpm (#567)
* refactor: remove fpm

* refactor: remove fpm

* refactor: .travis.yml

* chore: more cleanup

* chore: fix deploy
2018-02-26 18:49:58 -03:00
Carlos Alexandro Becker
2ea883e0c4
* feat: allow snapshots on a folder that is not a git repo (#579)
* feat: allow running against a folder that is not a git repo

* test: cover clean err

* test: release: increase coverage

* test: fix race condition
2018-02-25 20:17:45 -03:00
Carlos Alexandro Becker
0694b46bcc
fix: better deprecation notices (#561)
* fix: better deprecation notices

* test: covered deprecate with tests

* docs: improved docs

* docs: improved docs

* chore: organize imports

* style: code improve
2018-02-17 13:43:29 -02:00
Carlos Alexandro Becker
66338de1bb style: removed elses, improved test code 2018-02-16 15:03:37 -02:00
Southclaws
0a37305745 fix: Silent failure caused by branching logic
Changed the branching after the `GetContents` call to *first* check for
a non-404 error (internal failure of some sort) and then proceed to
check the status to determine whether to `CreateFile` or `UpdateFile`.
2018-02-11 12:09:46 -02:00
Southclaws
f8a7ac602e update: Added some missing changes
I forgot these!
2018-02-09 14:20:39 -02:00
Southclaws
d7107803a3 refactor: Changed Client.CreateFile to be more generic
The GitHub implementation of CreateFile implicitly uses HomeBrew data.
Added parameters for CommitAuthor and Repo so the call site can specify
these parameters based on the context.
2018-02-09 14:20:39 -02:00
Harmen
002d88b514 fix: Catch all stat errors 2018-02-01 13:27:21 +01:00
Carlos Alexandro Becker
20f18cb80d
Merge remote-tracking branch 'origin/master' into build 2018-01-28 13:02:16 -02:00
Carlos Alexandro Becker
f7be04a239
fix: git: if exit is 0, ignore stderr 2018-01-28 12:03:46 -02:00
Carlos Alexandro Becker
2d54332bee
Merge branch 'master' into build 2018-01-28 11:46:19 -02:00
Carlos Alexandro Becker
a89e3ace00
chore: added todo 2018-01-28 11:46:16 -02:00
Carlos Alexandro Becker
4da660d790
test: improve tests as per review 2018-01-28 11:42:03 -02:00
Carlos Alexandro Becker
8d37d45288
chore: added more logs to git
refs #529
2018-01-27 15:50:44 -02:00
Carlos Alexandro Becker
96a431c6a8
fix: several review suggestions 2018-01-26 21:54:08 -02:00
Carlos Alexandro Becker
fc7f33be98
style: renamed Default to WithDefaults 2018-01-26 19:35:12 -02:00
Carlos Alexandro Becker
a2d8087661
style: avoid bad abstractions 2018-01-26 19:26:28 -02:00
Carlos Alexandro Becker
9897a001bd
test: golang builder: 100% covered 2018-01-26 19:11:40 -02:00
Carlos Alexandro Becker
0bac9cb7d8
Merge remote-tracking branch 'origin/master' into build 2018-01-26 18:49:26 -02:00
Carlos Alexandro Becker
a309eae83b
fix: updated deps
closes #527
2018-01-26 09:37:10 -02:00
Carlos Alexandro Becker
2f69359209
test: skip for now 2018-01-23 15:47:04 -02:00
Carlos Alexandro Becker
9416dcc751
refactor: just started fixing tests 2018-01-22 01:10:17 -02:00
Carlos Alexandro Becker
4e6982a524
refactor: allow builders to have custom defaults 2018-01-21 23:37:39 -02:00
Carlos Alexandro Becker
42a8f0b194
refactor: adios build target 2018-01-21 22:44:06 -02:00
Carlos Alexandro Becker
d954f8a6df
wip 2018-01-21 18:54:33 -02:00
Carlos Alexandro Becker
a457ae6e17
feat: support multiple build systems 2018-01-21 14:31:08 -02:00
Andy Grunwald
825f19bb55 fix: Typo in buildtarget
The buildtarget contained a typo. This fixes it.
2018-01-20 18:30:33 +01:00
Carlos Alexandro Becker
4d71720b67 feat: skip formula upload 2018-01-12 19:24:58 -02:00
Carlos Alexandro Becker
9021160b11 fix: break if env not available
closes #467
2018-01-02 19:01:55 -02:00
Carlos Alexandro Becker
7910863ecd
refactor: improved name template
Should keep the previous behavior of having binary == nametemplate
2017-12-29 11:47:13 -02:00
Carlos Alexandro Becker
876e5fbe38
style: renamed template pkg to filenametemplate 2017-12-29 11:27:15 -02:00
Carlos Alexandro Becker
9b0441cbe4
docs: godoc of template pkg 2017-12-26 22:51:28 -02:00
Carlos Alexandro Becker
915e404629
test: fixed broken template test 2017-12-26 22:20:48 -02:00
Carlos Alexandro Becker
4ce13bc7c3
refactor: name templates for archive pipe 2017-12-26 21:19:58 -02:00
Carlos Alexandro Becker
fc4d9363bc
refactor: name templates 2017-12-26 21:10:37 -02:00
Carlos Alexandro Becker
4f3ed001da
fix: import 2017-12-20 10:42:18 -02:00
Carlos Alexandro Becker
f210a28ff9
fix: avoiding double escapes 2017-12-20 09:55:36 -02:00
Carlos Alexandro Becker
65d3c7ad7f
test: testing log output as well 2017-12-20 09:55:18 -02:00
Carlos Alexandro Becker
449ec3f49b
fix: re-added .Binary to supported fields
Also added a deprecation warning and tests,

Closes #476
2017-12-20 09:27:32 -02:00
Carlos Alexandro Becker
3a1f737747
refactor: move archiveformat code inside archive pipe
It was being used only in that pipe anyway.
2017-12-18 21:15:32 -02:00
Carlos Alexandro Becker
ca0b59633c
Revert "fix: dont compile without go:generate"
This reverts commit 6135c9f2bd.
2017-12-18 09:49:49 -02:00
Carlos Alexandro Becker
6135c9f2bd
fix: dont compile without go:generate 2017-12-18 09:29:58 -02:00
Carlos Alexandro Becker
530feac44a
fix: improved artifact add logs 2017-12-18 09:19:02 -02:00