We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42865b5 commit 28f3be0Copy full SHA for 28f3be0
build.sh
@@ -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