kubermemes/drone/common/dockerBuild.dhall

16 lines
371 B
Plaintext
Raw Normal View History

2020-01-23 20:50:23 +00:00
let drone = ../types.dhall
let dockerHost = ./dockerHost.dhall
let dockerBuild
: Text → drone.Step.Type
= λ(imageName : Text)
→ drone.Step::{
, name = "build image ${imageName}"
, volumes = Some [ dockerHost.step ]
, image = "docker:dind"
, commands = [ "docker build -t ${imageName} ." ]
}
in dockerBuild