Added more Environment variables.
This commit is contained in:
parent
5e6b26d13d
commit
7bb3358b63
1 changed files with 7 additions and 0 deletions
|
@ -412,6 +412,13 @@ func (b *Builder) writeDockerfile(dir string) error {
|
||||||
dockerfile.WriteRun("echo 'StrictHostKeyChecking no' > /root/.ssh/config")
|
dockerfile.WriteRun("echo 'StrictHostKeyChecking no' > /root/.ssh/config")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dockerfile.WriteEnv("CI", "true")
|
||||||
|
dockerfile.WriteEnv("DRONE", "true")
|
||||||
|
dockerfile.WriteEnv("DRONE_BRANCH", b.Repo.Branch)
|
||||||
|
dockerfile.WriteEnv("DRONE_COMMIT", b.Repo.Commit)
|
||||||
|
dockerfile.WriteEnv("DRONE_PR", b.Repo.PR)
|
||||||
|
dockerfile.WriteEnv("DRONE_BUILD_DIR", b.Repo.Dir)
|
||||||
|
|
||||||
dockerfile.WriteAdd("proxy.sh", "/etc/drone.d/")
|
dockerfile.WriteAdd("proxy.sh", "/etc/drone.d/")
|
||||||
dockerfile.WriteEntrypoint("/bin/bash -e /usr/local/bin/drone")
|
dockerfile.WriteEntrypoint("/bin/bash -e /usr/local/bin/drone")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue