Carlos Alexandro Becker
e8e28fead6
docs: changing order
...
Artifactory docs should be closer to docker and others.
2017-12-10 14:41:57 -02:00
Carlos Alexandro Becker
e82994f878
Merge pull request #429 from andygrunwald/artifactory-support
...
Artifactory: Added basic support to push binaries to an Artifactory store
2017-12-10 14:29:51 -02:00
Andy Grunwald
5358724f0b
Merge branch 'master' into artifactory-support
...
* master:
fix: lint warnings
test: fixed tests
test: added tests to effective config pipe
feat: write actual config to dist
2017-12-10 16:55:55 +01:00
Carlos Alexandro Becker
36015b4724
fix: lint warnings
...
added nosec for a mkdir 0755
2017-12-10 13:02:48 -02:00
Carlos Alexandro Becker
07c04b33f8
test: fixed tests
...
broken because of dist not being removed anymore
2017-12-10 13:02:48 -02:00
Carlos Alexandro Becker
f3fcb48983
test: added tests to effective config pipe
...
Also renamed the pipe from finalconfig to effectiveconfig
2017-12-10 13:02:48 -02:00
Carlos Alexandro Becker
06ddedf12a
feat: write actual config to dist
...
Writes the actual config file (with defaults
merged, etc) into the dist folder.
Can be useful for debug purposes.
2017-12-10 13:02:48 -02:00
Andy Grunwald
af618f9b69
refactor: Removed os.Getenv / os.Setenv in favor of ctx.Env
...
goreleaser offers a ctx.Env map to access env variables.
os.GetEnv and os.Setenv usages where removed from
Artifactory pipeline in favor of cts.Env access.
This makes testing easier
2017-12-10 14:41:27 +01:00
Andy Grunwald
4e4529bbf8
refactor: Simplified if checks for configured artifactories
...
- if l := len(ctx.Config.Artifactories); l == 0 {
+ if len(ctx.Config.Artifactories) == 0 {
2017-12-10 14:23:32 +01:00
Andy Grunwald
240a70e17c
test: Added three new unit tests for Artifactory pipeline
...
New tests added:
- TestRunPipe_TargetTemplateError
- TestRunPipe_UnparsableErrorResponse
- TestRunPipe_SkipWhenPublishFalse
2017-12-09 23:34:25 +01:00
Andy Grunwald
eacabadc40
test: Fix unit test TestArtifactoriesWithInvalidMode
...
The unit test TestArtifactoriesWithInvalidMode was not testing
what it should be. The publish parameter was not set and we
were testing for skipping instead of error
2017-12-09 22:53:44 +01:00
Andy Grunwald
3fa0fe5708
test: Add more unit tests for Artifactory pipeline
...
Added a couple of new unit tests, e.g. to test
- Defaults
- Mode: archive
2017-12-09 22:25:03 +01:00
Andy Grunwald
4021a8e41f
refactor: Generalized uploadAssetAndLog in Artifactory pipeline
...
uploadBinary and uploadArchive where nearly the same code.
We generalized uploadAssetAndLog() to handle both cases
2017-12-09 21:38:17 +01:00
Andy Grunwald
51bc617d32
fix: shadows declaration (vetshadow)
...
vetshadow throwed two warnings of shadows declaration of err
2017-12-09 21:20:02 +01:00
Andy Grunwald
d875dd0dd5
feat: Implemented upload mode for Artifactory pipeline
...
The Artifactory pipeline now supports two different
types of upload modes:
- binary: Only the raw binaries will be uploaded
- archive: All artifacts that are generated will be uploaded
2017-12-09 20:54:04 +01:00
Andy Grunwald
27a9abc73b
refactor: Introduced name per artifactory instance for identification
...
This introduced a new property per Artifactory instance: Name
With this name we are able to
a) identify a instance
b) use the name to identify the secret (instead of a number)
c) use this name for logging
2017-12-09 18:17:37 +01:00
Andy Grunwald
13fea192c9
Merge branch 'master' into artifactory-support
...
* master:
fix: remove brew taps listing from release notes
fix: tests should pass now
style: improved goreleaser output
2017-12-09 17:40:26 +01:00
Carlos Alexandro Becker
bb5e27b0c4
fix: remove brew taps listing from release notes
...
It never worked, because the brew pipe is the last
to run.
Either way, it is not a really useful thing to
have I think.
2017-12-08 22:03:26 -02:00
Carlos Alexandro Becker
5636313d7c
fix: tests should pass now
...
Make the code more safe
2017-12-08 21:49:45 -02:00
Carlos Alexandro Becker
29d9ae5878
style: improved goreleaser output
...
- Added paddings
- Added total time taken by the release
Closes #441
2017-12-08 21:49:45 -02:00
Andy Grunwald
1f5df43e75
Merge branch 'master' into artifactory-support
...
* master: (47 commits)
docs: add docs for env vars in name_template
test: add test for name_template with env var
feat: support env vars for name_template
docs: Fixed broken homebrew link
docs: fixed master build status badge on readme
chore: misspeled word on package docs
feat: improved release notes
chore: create config.yml
chore: create stale.yml
chore: push docs to master
chore: changing the order of the tasks
chore: using https instead of ssh url
chore: always run make static on build
chore: using travis deploy feature
chore: automating docs deployment
fix: do not decorate git log output
chore: make static pushes repo as well
docs: env support for docker tag_template
feat: allow env vars for docker tag_template
fix: move env vars to context
...
2017-12-08 21:50:02 +01:00
Frank Schroeder
5a199e50d2
docs: add docs for env vars in name_template
...
Add docs for using env vars in name_template.
2017-12-07 23:21:43 -02:00
Frank Schroeder
904d4455f4
test: add test for name_template with env var
...
Add a test for name_template with an env var.
2017-12-07 23:21:43 -02:00
Frank Schroeder
ca3eedfea8
feat: support env vars for name_template
...
This patch adds support to use env vars for the
archive.name_template parameter.
2017-12-07 23:21:43 -02:00
Nathaniel Kofalt
b2e0895ec0
docs: Fixed broken homebrew link
...
The old taps URL 404s out; I updated it to the new URL.
2017-12-07 15:51:41 -02:00
Carlos Alexandro Becker
306effc477
docs: fixed master build status badge on readme
...
It was showing the last build, which may be from
a broken PR.
2017-12-06 16:26:52 -02:00
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