harbur / captain

Captain - Convert your Git workflow to Docker :whale: containers
MIT License
767 stars 51 forks source link

Add support for "pre" & "post" commands #8

Closed dkapanidis closed 9 years ago

dkapanidis commented 9 years ago

In order to wrap non-docker build commands on the build life-cycle of containers preparation the following will be added on the captain.yml format:

captain-example:
  build: Dockerfile
  image: harbur/captain-example
  pre:
    - echo "Preparing build"
  post:
    - echo "Cleaning up build"