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

1373 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
a8ce65013e chore: misspeled word on package docs
Also simplified imports
2017-12-06 00:33:30 -02:00
Carlos Alexandro Becker
e87ab21a0a feat: improved release notes
- Added homebrew taps
- Docker pull commands instead of list of docker imgs
2017-12-06 00:13:24 -02:00
Carlos Alexandro Becker
0efbe336e3
chore: create config.yml
Setting up the TODO bot.

https://github.com/jasonetco/todo
2017-12-06 00:12:43 -02:00
Carlos Alexandro Becker
46eaa193a2 chore: create stale.yml
It's the configuration for the stale probot.

https://github.com/probot/stale
2017-12-06 00:09:41 -02:00
Carlos Alexandro Becker
b0aa533a4f chore: push docs to master
Docs are using master instead of gh-pages.
2017-12-05 23:52:28 -02:00
Carlos Alexandro Becker
94481dfbe2 chore: changing the order of the tasks
GoReleaser will fail to run on a non-empty dist
2017-12-05 23:06:15 -02:00
Carlos Alexandro Becker
5ec6ddec9f chore: using https instead of ssh url
Travis cant clone it via ssh since it doesnt
have the ssh key
2017-12-05 23:06:15 -02:00
Carlos Alexandro Becker
5e2cca2eb1 chore: always run make static on build
So we guarantee that docs wont break on change
2017-12-05 23:06:15 -02:00
Carlos Alexandro Becker
da61f77dff chore: using travis deploy feature
Should work better than hacky scripts
2017-12-05 23:06:15 -02:00
Carlos Alexandro Becker
ccd72344cc chore: automating docs deployment
Auto-deploy docs on releases.
Should test it first, though.
2017-12-05 23:06:15 -02:00
Frank Schroeder
d4a54c9381 fix: do not decorate git log output
Ensure that the git log output is not decorated. Otherwise, the format
changes and the tests fail.

Fixes #439
2017-12-05 22:49:20 -02:00
Carlos Alexandro Becker
aa033d8f99 chore: make static pushes repo as well
Making the static task commit and push
the changes
2017-12-05 21:58:55 -02:00
Frank Schroeder
c929320782 docs: env support for docker tag_template
Update docs for tag_template.
2017-12-05 21:42:04 -02:00
Frank Schroeder
25e1cddc1b feat: allow env vars for docker tag_template
Add env var support for the Docker tag_template field incl. test.
2017-12-05 21:42:04 -02:00
Frank Schroeder
1c2afe148f fix: move env vars to context
In preparation to support env vars for Docker tag_template and also to
simplify the tests by not chaning the global os.Environ I've moved the
parsed env var map into the context.Context.
2017-12-05 21:42:04 -02:00
Frank Schroeder
3e0b7fbd46 fix: split env vars into only two parts
The loadEnv() function was splitting env vars on all `=` characters
which is not correct. Env vars are `key=val` and contain only two parts.
2017-12-05 21:42:04 -02:00
Carlos Alexandro Becker
0074b79819 fix: fixing test to use the right import
VSCode used alecthomas/template instead of text/template
automatically, tests begin to fail when I fixed it
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
3be7299047 fix: using the right import
VSCode used alecthomas/template instead of
text/template automatically
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
8d9245d4d3 docs: documented tag_template field
New feature recently added
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
8f5cf8a102 feat: release our docker image as vX.Y.Z
Using the tag instead of the version
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
14d1347ed9 feat: allow templates on docker tags
Allow to template docker tags.

Closes #433
2017-12-05 14:49:25 -02:00
Carlos Alexandro Becker
6dc31b53bd
docs: fixes to use the "default" fork
I was using my own fork, but its getting
hard to maintain that. Lets use the
default version.
2017-12-04 09:49:29 -02:00
Carlos Alexandro Becker
d5c7af1db9 feat: support environment variables on ldflags
Supports passing environment variables to ldflags by using .Env.VARNAME.

Closes #426
2017-12-04 09:23:26 -02:00
Carlos Alexandro Becker
b77acd2cc7 test: improving tests
Moved tests from defaults to build pipe, as it
doesnt make sense to be there.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
2dfdb4cd61 test: fpm tests
Added more tests to cover defaulter.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
a432839ad4 test: brew tests
Added more tests to cover defaulter.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
44d01ceccb fix: removed uneeded docs
We use fmt.Stringer now
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
208ab4df23 fix: lint issue
I was shadowing binaryName
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
0c91f6e210 test: build tests
Added more tests to cover defaulter. Also moved
some code around.
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
b702adfc61 test: docker tests
Added tests for docker defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
8535ed3811 test: archive tests
Added tests for archive defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
278026992b fix: checksums pipe
I messed up the name template, tests save me
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
8c86228e42 fix: fixed name template
I changed it, dunno why. Lets keep changes minumum
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
a3a10fab37 test: release tests
Added tests for release defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
f9cdb2df04 test: added test for snapshot
Added tests for snapshot defaulter
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
0d9da86624 fix: missing Binary field
Readded it for now. Should remove it someday as it is deprecated
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
66e8f98735 fix: removed unused import
Dunno why vscode did not removed it
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
2b42a7346f fix: improved defaulter documentation
As suggested by @jorin
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
eb19e2b5d9 refactor: rm internal/name pkg
Each pipe now does its own templating
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
3fd9e0f306 fix: checksums pipe
An if statement was wrong, fixed it and added tests
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
65a8e96779 fix: broken test
Was using a constant that no longer exists
2017-12-03 13:00:01 -02:00
Carlos Alexandro Becker
1ed299a6d7 refactor: defaulter interface
Right now the code looks weird because the defaults
of a pipe are far away of the implementation of the pipe.

the intend of this PR is to bring them closer by having a
Defaulter interface.

I also renamed the Pipe interface to Piper, and removed
the Description method in favor for fmt.Stringer.
2017-12-03 13:00:01 -02:00
Andy Grunwald
0b0c12aaad fix: Adjusted codebase according comments from @caarlos0
- Renamed function to upload()
- Fixed an inline comment
- Excluded a defer file.Close() from errcheck analysis
2017-12-02 23:39:39 +01:00
Andy Grunwald
39db1d5b55 docs: Added missing yaml configuration for username
In the Customization chapter we missed the username configuration
2017-12-02 23:34:29 +01:00
Andy Grunwald
78f83ec466 test: Add three new unit tests for Artifactory pipeline
Three new unit tests added:
- TestRunPipe_NoFile: Checks the error if the file for the
upload is not there
- TestRunPipe_UnparsableTarget: Checks that an error will
be thrown if the target is not parsable
- TestRunPipe_DirUpload: Checks that an error will be
thrown when we try to upload a directory
2017-12-02 22:03:01 +01:00
Andy Grunwald
2842b86365 fix: Don't continue Artifactory pipeline when there is an error
We are able to define multiple Artifactory instances.
In the former implementation, we continue once one instance upload
was failing. Now we stop and throw the error.
2017-12-02 21:40:14 +01:00
Andy Grunwald
37bc09f2bc fix: Use HTTP error if upload to Artifactory failes
In a former commit we respected the error of the Close()
call for a HTTP response. The fix was to introduce named
return values (e.g. err for error).
The problem: We defered the resp.Close() via
err = resp.Close()
This had the effect of always overwrite the real error
that happen when the HTTP call failes (due to checkResponse func).
2017-12-02 21:29:59 +01:00
Andy Grunwald
b282c84df3 docs: Add {{ .Version }} variable into Artifactory docs
The target of the Artifactory configuration supports variables.
Now the {{ .Version }} variable is also used in the docs
2017-12-02 21:14:04 +01:00
Andy Grunwald
024ca0a1af fix: panic while access a http response in Artifactory pipeline
When the upload target is not resolvable by tcp (e.g. unknown host)
no response object will be generated.
In an error case the response object is used (it was assumed that
this will be there at every point in time).

This commit fixes this behaviour
2017-12-02 21:10:32 +01:00
Andy Grunwald
d9f349dd0c docs: Add first draft of documentation for Artifactory
The first draft of the Artifactory pipeline documentation was added.
2017-12-02 21:03:06 +01:00