File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,18 @@ action :build, :b do
5151 run "docker images |grep bashly"
5252end
5353
54- help "Push the docker images to Docker Hub (since autobuilds are only for the rich and famous...)"
54+ help "Smoke test the docker image"
55+ action :test, :t do
56+ bashly_version = `docker run --rm dannyben/bashly --version`.chomp
57+ if bashly_version != Bashly::VERSION
58+ say "!txtred!FAIL: docker bashly version is #{bashly_version}, expected #{Bashly::VERSION}"
59+ exit 1
60+ else
61+ say "!txtgrn!PASS: docker bashly version is #{bashly_version}"
62+ end
63+ end
64+
65+ help "Push the docker images to Docker Hub"
5566action :push, :p do
5667 run "docker push dannyben/bashly"
5768 run "docker push dannyben/bashly:#{Bashly::VERSION}"
You can’t perform that action at this time.
0 commit comments