Skip to content

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
someth2say committed Jan 22, 2021
1 parent 42865b5 commit 28f3be0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/sh
function has() {
curl -sL https://git.io/_has | bash -s $1
return $?
}

has "podman" && command="podman" || has "docker" && command="docker"
$command build . -t quay.io/redhattraining/pre-commit -f Containerfile

0 comments on commit 28f3be0

Please sign in to comment.