Commit graph

6176 commits

Author SHA1 Message Date
Brad Rydzewski
b44bdd7ac7 Merge pull request #826 from mattbostock/per_plugin_registration
Per-remote open registration
2015-01-16 22:04:51 -08:00
Brad Rydzewski
3e8fdf0ea7 Merge pull request #788 from gregory90/docker-publish-pull
Always pull newest base image when using docker publish plugin
2015-01-16 21:40:41 -08:00
Brad Rydzewski
11e7ea7e15 Merge pull request #824 from orjanbruland/master
Use Slug instead of Name for Bitbucket repos.
2015-01-16 21:22:39 -08:00
Matt Bostock
c48c6ebc88 Remove capability package
It's no longer used. This commit can always be reverted later if it's
needed again.
2015-01-16 22:05:23 +00:00
Matt Bostock
307aed12bc Move open registration setting into remote plugins
...so that it's possible to enable or disable open registration on a
per-remote basis.

For example, the `DRONE_REGISTRATION_OPEN` environment variable now
becomes `DRONE_GITHUB_OPEN` when using GitHub as a remote.

The default for open registration in this commit is `false` (disabled),
which matches the existing behaviour.

This is useful if you need to support both public and private remotes,
e.g. GitHub.com and GitHub Enterprise, where you trust all of the
private users and want to allow open registration for those but would
not want all GitHub.com users to run builds on your server.

Tested with GitHub and GitLab.
2015-01-16 22:04:24 +00:00
Ørjan Bruland
570a23f952 Use Slug instead of Name for Bitbucket repos. 2015-01-16 17:36:56 +01:00
Brad Rydzewski
f79762177c Merge pull request #820 from dcarley/github_whitelist_orgs
Support org whitelists for GitHub+GHE remotes
2015-01-15 21:50:01 -08:00
Brad Rydzewski
2dba3c2309 Merge pull request #823 from bradrydzewski/master
fixed #822
2015-01-15 21:45:25 -08:00
Brad Rydzewski
5dd08030e3 fixed #822 2015-01-15 21:35:38 -08:00
Dan Carley
8fa473b07a Support org whitelists for GitHub+GHE remotes
Allow the GitHub and GitHub Enterprise remotes to restrict who can login
based on a user's organisation membership. This can be used as a safe
addition to open registration and also ensures that access is revoked when a
user is subsequently removed from the org. The default is not to restrict at
all.
2015-01-15 17:05:53 +00:00
Dan Carley
789adf90e4 Add test for GitHub remote Authorize()
To test that it correctly authorises a valid user, prior to me extending it.
This only tests the happy path because simulating oAuth failures is going
to be quite hard at this stage.
2015-01-15 14:54:27 +00:00
Dan Carley
a608f5ef82 Add test for GitHub remote GetOrgs() helper
I'm about to re-use this in another helper, so test that it works as
expected. Also fix the inline documentation which was copied from
`GetOrgRepos`.
2015-01-15 14:54:27 +00:00
Dan Carley
86b0329d57 Change org name in GitHub testdata
The example JSON taken from GitHub's API documentation doesn't indicate that
`login` is the name of an organisation rather than a user. Change it to
something that looks more like an org, because it will make a test that I'm
about to add more readable. The endpoint name changes accordingly.
2015-01-15 14:54:26 +00:00
Brad Rydzewski
f33b6efb74 Merge pull request #818 from bradrydzewski/master
fixed incorrect method for GetRepo in Drone client
2015-01-15 02:07:18 -08:00
Brad Rydzewski
768b299543 fixed incorrect method for GetRepo in Drone client 2015-01-15 00:22:33 -08:00
Brad Rydzewski
dac460f488 Merge pull request #813 from bradrydzewski/master
fixed dependency issue w/ gopkg.in
2015-01-13 23:36:38 -08:00
Brad Rydzewski
f209d126db fixed govet issue 2015-01-13 23:32:25 -08:00
Brad Rydzewski
27640db7a3 fixed dep in docker_test.go 2015-01-13 23:24:23 -08:00
Brad Rydzewski
97d80a43b7 fixed dep issue 2015-01-13 23:18:31 -08:00
Brad Rydzewski
59fe6dfbef Merge pull request #710 from nils-werner/usefulhomepage
Slightly more useful homepage
2015-01-13 21:58:52 -08:00
Brad Rydzewski
ff127f0349 webhook payload should include the host URL 2015-01-13 21:57:30 -08:00
Brad Rydzewski
d0b722cc8b Insert and Update Users instead of generic Save function. Check ID != 0 2015-01-13 21:57:02 -08:00
Brad Rydzewski
881dcb153e Merge remote-tracking branch 'upstream/master' 2015-01-13 21:55:29 -08:00
Brad Rydzewski
83d1d6ada9 Merge pull request #781 from bradrydzewski/master
Change SSH Key Pair (issue #61)
2015-01-13 21:55:02 -08:00
Brad Rydzewski
1627d5f5da Merge pull request #802 from Bugagazavr/bintray
Bintray
2015-01-13 09:10:50 -08:00
Kirill Zaitsev
ef3fba75a9 Version from file 2015-01-12 20:00:36 +03:00
Brad Rydzewski
aed6f17db6 Merge pull request #803 from andy-g/fix_commit_grouping_by_branch
Fixing an issue with branch grouping due to substring matching
2015-01-12 08:10:42 -08:00
Brad Rydzewski
4f3f7d03fe Merge pull request #801 from alphagov/fix-typo
Clarify 'sync running' message
2015-01-12 07:59:39 -08:00
Andy Gardner
fc014768f1 Fixing an issue with branch grouping due to substring matching 2015-01-12 16:09:55 +02:00
Matt Bostock
6534bc79b4 Clarify 'sync running' message
Improve the grammar of the 'sync already runned' message to 'sync
already in progress', which should clarify what is happening when this
message is displayed.
2015-01-12 14:02:48 +00:00
Kirill Zaitsev
ce5d4edca5 Bintray plugin 2015-01-12 16:50:59 +03:00
Brad Rydzewski
68e6d530fb Merge pull request #800 from dave-tucker/toml_gogs
Add Gogs to the config file and Readme
2015-01-11 18:30:26 -08:00
Dave Tucker
9f2849d5ad Add Gogs to the TOML config file
While updating an Ansible module I noticed that while Gogs is supported,
it doesn't appear, commented out, in the TOML file. This commit adds it

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
2015-01-12 02:20:18 +00:00
Brad Rydzewski
ae65cf5fdb Merge pull request #797 from mattbostock/go_fmt
Run gofmt and add test to prevent regressions
2015-01-11 11:13:35 -08:00
Brad Rydzewski
254d910a62 Merge pull request #796 from mattbostock/tidy_dependencies
Remove explicit `go get` for rice and goblin pkgs
2015-01-11 11:03:34 -08:00
Matt Bostock
b027bd8392 Run gofmt and add test to prevent regressions
Run `go fmt ./...` [1] and add a test to the `test` make target that
checks if `go fmt` has been run.

[1]: http://blog.golang.org/go-fmt-your-code
2015-01-11 18:54:34 +00:00
Matt Bostock
3cb015a287 Remove explicit go get for goblin package
The goblin package will be pulled in by the `go get` invocation
on the following line as it's references by imports, so there's no
need to list it separately.
2015-01-11 18:41:49 +00:00
Brad Rydzewski
6ed8542f7d Merge pull request #792 from cedk/patch-1
Missing URL for bitbucket Repo
2015-01-10 18:10:11 -08:00
Brad Rydzewski
40b5ea350e Merge pull request #791 from libgo/badges
README: flat style SVG badges
2015-01-10 18:06:01 -08:00
Cédric Krier
cb6ade6919 Missing URL for bitbucket Repo 2015-01-11 02:13:12 +01:00
Nathan Youngman
49a591b451 README: flat style SVG badges
For consistency.
2015-01-09 23:22:03 -07:00
Brad Rydzewski
5afcc88827 Merge pull request #782 from gregory90/fix-759
Don't retag images with tag used for `docker build`
2015-01-08 22:01:07 -08:00
Brad Rydzewski
fec8be34e9 Merge pull request #783 from carnivalmobile/word_break_terminal_output
Enforce word breaks in terminal output
2015-01-08 22:00:30 -08:00
Brad Rydzewski
89098f1568 Merge remote-tracking branch 'upstream/master' 2015-01-07 08:18:15 -08:00
Grzegorz Graczyk
c90303aaf7 add --pull to docker build in docker publish plugin 2015-01-07 16:27:24 +01:00
ap4y
a6278f35fb Enforce word breaks in terminal output 2015-01-06 00:31:21 +13:00
Grzegorz Graczyk
262c0d66c0 check if tag wasn't used for image building 2015-01-05 12:12:37 +01:00
Brad Rydzewski
b4ca338948 ability to override the public private key for a repository via the CLI 2015-01-04 15:21:35 -08:00
Brad Rydzewski
0a6227930d Merge pull request #777 from bradrydzewski/master
improved debugging when Docker errors
2014-12-30 13:21:30 -08:00
Brad Rydzewski
f890d42019 fixed unit test 2014-12-30 13:17:54 -08:00