add trigger environment variable

pull/4/head
zc 3 years ago
parent 0bbd513f1a
commit e1ad97a224

@ -141,6 +141,7 @@ func Build(build *drone.Build) map[string]string {
"DRONE_BUILD_FINISHED": fmt.Sprint(build.Finished),
"DRONE_DEPLOY_TO": build.Deploy,
"DRONE_DEPLOY_ID": fmt.Sprint(build.DeployID),
"DRONE_BUILD_TRIGGER": build.Trigger,
// these are legacy configuration parameters for backward
// compatibility with drone 0.8. These are deprecated and

Loading…
Cancel
Save