Skip to content

Commit

Permalink
concourse: docker: added a clean task
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jan 22, 2019
1 parent 4d89a32 commit 6388d06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ def docker_files_each
sh "docker push #{docker_image}"
end
end

desc "Clean generated dockerfiles"
task "clean" do
generated_files = Dir[File.join(IMAGE_DIR, "Dockerfile.*.generated")]
FileUtils.rm_f generated_files, verbose: true unless generated_files.empty?
end
end

desc "Build and push a docker image for testing"
Expand Down

0 comments on commit 6388d06

Please sign in to comment.