@@ -248,6 +248,11 @@ func main() {
248248 Usage : "additional host:IP mapping" ,
249249 EnvVar : "PLUGIN_ADD_HOST" ,
250250 },
251+ cli.StringSliceFlag {
252+ Name : "ssh-agent" ,
253+ Usage : "mount ssh agent" ,
254+ EnvVar : "PLUGIN_SSH_AGENT" ,
255+ },
251256 }
252257
253258 if err := app .Run (os .Args ); err != nil {
@@ -267,26 +272,27 @@ func run(c *cli.Context) error {
267272 Config : c .String ("docker.config" ),
268273 },
269274 Build : docker.Build {
270- Remote : c .String ("remote.url" ),
271- Name : c .String ("commit.sha" ),
272- Dockerfile : c .String ("dockerfile" ),
273- Context : c .String ("context" ),
274- Tags : c .StringSlice ("tags" ),
275- Args : c .StringSlice ("args" ),
276- ArgsEnv : c .StringSlice ("args-from-env" ),
277- Target : c .String ("target" ),
278- Squash : c .Bool ("squash" ),
279- Pull : c .BoolT ("pull-image" ),
280- CacheFrom : c .StringSlice ("cache-from" ),
281- Compress : c .Bool ("compress" ),
282- Repo : c .String ("repo" ),
283- Labels : c .StringSlice ("custom-labels" ),
284- LabelSchema : c .StringSlice ("label-schema" ),
285- AutoLabel : c .BoolT ("auto-label" ),
286- Link : c .String ("link" ),
287- NoCache : c .Bool ("no-cache" ),
288- AddHost : c .StringSlice ("add-host" ),
289- Quiet : c .Bool ("quiet" ),
275+ Remote : c .String ("remote.url" ),
276+ Name : c .String ("commit.sha" ),
277+ Dockerfile : c .String ("dockerfile" ),
278+ Context : c .String ("context" ),
279+ Tags : c .StringSlice ("tags" ),
280+ Args : c .StringSlice ("args" ),
281+ ArgsEnv : c .StringSlice ("args-from-env" ),
282+ Target : c .String ("target" ),
283+ Squash : c .Bool ("squash" ),
284+ Pull : c .BoolT ("pull-image" ),
285+ CacheFrom : c .StringSlice ("cache-from" ),
286+ Compress : c .Bool ("compress" ),
287+ Repo : c .String ("repo" ),
288+ Labels : c .StringSlice ("custom-labels" ),
289+ LabelSchema : c .StringSlice ("label-schema" ),
290+ AutoLabel : c .BoolT ("auto-label" ),
291+ Link : c .String ("link" ),
292+ NoCache : c .Bool ("no-cache" ),
293+ AddHost : c .StringSlice ("add-host" ),
294+ Quiet : c .Bool ("quiet" ),
295+ SSHAgent : c .String ("ssh-agent" ),
290296 },
291297 Daemon : docker.Daemon {
292298 Registry : c .String ("docker.registry" ),
0 commit comments