use platform-specific defaults for the git plugin

This commit is contained in:
Brad Rydzewski 2017-07-18 20:53:10 -04:00
parent d3966b6a73
commit 0abe9f6daf
2 changed files with 33 additions and 27 deletions

View file

@ -96,6 +96,12 @@ func (c *Compiler) Compile(conf *yaml.Config) *backend.Config {
Image: "plugins/git:latest",
Vargs: map[string]interface{}{"depth": "0"},
}
switch c.metadata.Sys.Arch {
case "linux/arm":
container.Image = "plugins/git:linux-arm"
case "linux/arm64":
container.Image = "plugins/git:linux-arm64"
}
name := fmt.Sprintf("%s_clone", c.prefix)
step := c.createProcess(name, container)

54
vendor/vendor.json vendored
View file

@ -39,80 +39,80 @@
{
"checksumSHA1": "W3AuK8ocqHwlUajGmQLFvnRhTZE=",
"path": "github.com/cncd/pipeline/pipeline",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "rO+djTfB4LrT+FBbpotyUUobOtU=",
"path": "github.com/cncd/pipeline/pipeline/backend",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "DzP4c915B+gJTE5RCKQHzxwrUg4=",
"path": "github.com/cncd/pipeline/pipeline/backend/docker",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "8Hj/OZnYZyz5N2hqENCTTaGtkNQ=",
"path": "github.com/cncd/pipeline/pipeline/frontend",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "9KYIsY8WlWbrRAP7caEpWT70P9c=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "1saqrg1gk6F2N0x2rOCTnSfwBAY=",
"checksumSHA1": "k+JVxks9V84qd+3kefHEtlqLEAA=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/compiler",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "Q0GkNUFamVYIA1Fd8r0A5M6Gx54=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/linter",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "kx2sPUIMozPC/g6E4w48h3FfH3k=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/matrix",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "L7Q5qJmPITNmvFEEaj5MPwCWFRk=",
"path": "github.com/cncd/pipeline/pipeline/frontend/yaml/types",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "2/3f3oNmxXy5kcrRLCFa24Oc9O4=",
"path": "github.com/cncd/pipeline/pipeline/interrupt",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "uOjTfke7Qxosrivgz/nVTHeIP5g=",
"path": "github.com/cncd/pipeline/pipeline/multipart",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "ndDase2wF8bWu83aDT8PFxVNSiU=",
"path": "github.com/cncd/pipeline/pipeline/rpc",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "WAQJYKWUIFBnL1s8AnY4fePnzJ8=",
"path": "github.com/cncd/pipeline/pipeline/rpc/proto",
"revision": "edd4cdaa4846a7bd7778533230597c1b28159a47",
"revisionTime": "2017-06-29T21:17:09Z"
"revision": "a117e57da055285a2385d5f09314d1f3f8b8073e",
"revisionTime": "2017-07-19T00:51:24Z"
},
{
"checksumSHA1": "7Qj1DK0ceAXkYztW0l3+L6sn+V8=",