Skip to content

Commit

Permalink
only expose netrc when private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed Mar 19, 2017
1 parent b6321a4 commit da11937
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 26 deletions.
9 changes: 8 additions & 1 deletion server/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,14 @@ func (b *builder) Build() ([]*buildItem, error) {
// TODO ability to customize the escalated plugins
compiler.WithEscalated("plugins/docker", "plugins/gcr", "plugins/ecr"),
compiler.WithLocal(false),
compiler.WithNetrc(b.Netrc.Login, b.Netrc.Password, b.Netrc.Machine),
compiler.WithOption(
compiler.WithNetrc(
b.Netrc.Login,
b.Netrc.Password,
b.Netrc.Machine,
),
b.Repo.IsPrivate,
),
compiler.WithPrefix(
fmt.Sprintf(
"%d_%d",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,68 +28,68 @@
{
"checksumSHA1": "W3AuK8ocqHwlUajGmQLFvnRhTZE=",
"path": "github.com/cncd/pipeline/pipeline",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "Qu2FreqaMr8Yx2bW9O0cxAGgjr0=",
"path": "github.com/cncd/pipeline/pipeline/backend",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "0CGXRaYwZhJxGIrGhn8WGpkFqPo=",
"path": "github.com/cncd/pipeline/pipeline/backend/docker",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "/8wE+cVb7T4PQZgpLNu0DHzKGuE=",
"path": "github.com/cncd/pipeline/pipeline/frontend",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "O0sulBQAHJeNLg3lO38Cq5uf/eg=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "srNvtlujHSHC8YXrnFPdy5V7qoQ=",
"checksumSHA1": "ftyr9EJQl9D5OvzOcqGBS6stt0g=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/compiler",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "Q0GkNUFamVYIA1Fd8r0A5M6Gx54=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/linter",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "kx2sPUIMozPC/g6E4w48h3FfH3k=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/matrix",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "2/3f3oNmxXy5kcrRLCFa24Oc9O4=",
"path": "github.com/cncd/pipeline/pipeline/interrupt",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "uOjTfke7Qxosrivgz/nVTHeIP5g=",
"path": "github.com/cncd/pipeline/pipeline/multipart",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "MratmNKJ78/IhWvDsZphN01CtmE=",
"path": "github.com/cncd/pipeline/pipeline/rpc",
"revision": "3614f41e777232289a3cd479c2301274556e3346",
"revisionTime": "2017-03-14T15:17:46Z"
"revision": "addc99dad68008570994f8de318101adfe4161a6",
"revisionTime": "2017-03-19T09:04:25Z"
},
{
"checksumSHA1": "7Qj1DK0ceAXkYztW0l3+L6sn+V8=",
Expand Down

0 comments on commit da11937

Please sign in to comment.