Skip to content

Commit 28f3be0

Browse files
committedJan 22, 2021
Add build script
1 parent 42865b5 commit 28f3be0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎build.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#! /bin/sh
2+
function has() {
3+
curl -sL https://git.io/_has | bash -s $1
4+
return $?
5+
}
6+
7+
has "podman" && command="podman" || has "docker" && command="docker"
8+
$command build . -t quay.io/redhattraining/pre-commit -f Containerfile

0 commit comments

Comments
 (0)
Please sign in to comment.