1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-23 17:22:09 +01:00

Merge pull request #17 from greenboxal/fix-exec-identity

Fix drone exec identity
This commit is contained in:
Brad Rydzewski 2016-01-12 13:02:50 -08:00
commit de5b851c27

@ -142,6 +142,8 @@ func execCmd(c *cli.Context) error {
Repo drone.Repo `json:"repo"` Repo drone.Repo `json:"repo"`
Build drone.Build `json:"build"` Build drone.Build `json:"build"`
Job drone.Job `json:"job"` Job drone.Job `json:"job"`
Netrc drone.Netrc `json:"netrc"`
Keys drone.Key `json:"keys"`
Config string `json:"config"` Config string `json:"config"`
}{ }{
Repo: drone.Repo{ Repo: drone.Repo{
@ -169,9 +171,14 @@ func execCmd(c *cli.Context) error {
if err != nil { if err != nil {
return err return err
} }
payload.Workspace.Keys = &drone.Key{ payload.Keys = drone.Key{
Private: string(key), Private: string(key),
} }
payload.Netrc = drone.Netrc{
Machine: "",
Login: "",
Password: "",
}
} }
if len(proj) != 0 { if len(proj) != 0 {