move build tasks to script/cibuild
This commit is contained in:
@@ -6,3 +6,16 @@ set -e
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
echo " => Baue Image localhost/kontor-spring:0.3.0"
|
||||||
|
buildah build -t kontor-spring:0.3.0 kontor-spring
|
||||||
|
echo " => Baue Image localhost/kontor-api:0.3.0"
|
||||||
|
buildah build -t kontor-api:0.3.0 kontor-api
|
||||||
|
echo " => Baue Image localhost/kontor-quarkus:0.3.0"
|
||||||
|
buildah build -t kontor-quarkus:0.3.0 kontor-quarkus
|
||||||
|
echo " => Baue Image localhost/kontor-echo:0.3.0"
|
||||||
|
buildah build -t kontor-echo:0.3.0 kontor-echo
|
||||||
|
echo " => Baue Image localhost/kontor-fiber:0.3.0"
|
||||||
|
buildah build -t kontor-fiber:0.3.0 kontor-fiber
|
||||||
|
echo " => Baue Image localhost/kontor-javalin:0.3.0"
|
||||||
|
buildah build -t kontor-javalin:0.3.0 kontor-javalin
|
||||||
|
|
||||||
|
|||||||
+3
-19
@@ -8,6 +8,9 @@ cd "$(dirname "$0")/.."
|
|||||||
|
|
||||||
script/bootstrap
|
script/bootstrap
|
||||||
|
|
||||||
|
script/cibuild
|
||||||
|
|
||||||
|
|
||||||
echo "==> Setting up pod kontor"
|
echo "==> Setting up pod kontor"
|
||||||
if podman pod exists kontor; then
|
if podman pod exists kontor; then
|
||||||
echo " => pod kontor exists"
|
echo " => pod kontor exists"
|
||||||
@@ -88,9 +91,6 @@ fi
|
|||||||
echo "==> Setting up container kontor-spring"
|
echo "==> Setting up container kontor-spring"
|
||||||
if podman image exists localhost/kontor-spring:0.3.0; then
|
if podman image exists localhost/kontor-spring:0.3.0; then
|
||||||
echo " => Image localhost/kontor-spring:0.3.0 available"
|
echo " => Image localhost/kontor-spring:0.3.0 available"
|
||||||
else
|
|
||||||
echo " => Baue Image localhost/kontor-spring:0.3.0"
|
|
||||||
buildah build -t kontor-spring:0.3.0 kontor-spring
|
|
||||||
fi
|
fi
|
||||||
if podman container exists kontor-spring; then
|
if podman container exists kontor-spring; then
|
||||||
if podman ps -q --filter "name=kontor-spring"; then
|
if podman ps -q --filter "name=kontor-spring"; then
|
||||||
@@ -109,9 +109,6 @@ fi
|
|||||||
echo "==> Setting up container kontor-api"
|
echo "==> Setting up container kontor-api"
|
||||||
if podman image exists localhost/kontor-api:0.3.0; then
|
if podman image exists localhost/kontor-api:0.3.0; then
|
||||||
echo " => Image localhost/kontor-api:0.3.0 available"
|
echo " => Image localhost/kontor-api:0.3.0 available"
|
||||||
else
|
|
||||||
echo " => Baue Image localhost/kontor-api:0.3.0"
|
|
||||||
buildah build -t kontor-api:0.3.0 kontor-api
|
|
||||||
fi
|
fi
|
||||||
if podman container exists kontor-api; then
|
if podman container exists kontor-api; then
|
||||||
if podman ps -q --filter "name=kontor-api"; then
|
if podman ps -q --filter "name=kontor-api"; then
|
||||||
@@ -134,9 +131,6 @@ fi
|
|||||||
echo "==> Setting up container kontor-quarkus"
|
echo "==> Setting up container kontor-quarkus"
|
||||||
if podman image exists localhost/kontor-quarkus:0.3.0; then
|
if podman image exists localhost/kontor-quarkus:0.3.0; then
|
||||||
echo " => Image localhost/kontor-quarkus:0.3.0 available"
|
echo " => Image localhost/kontor-quarkus:0.3.0 available"
|
||||||
else
|
|
||||||
echo " => Baue Image localhost/kontor-quarkus:0.3.0"
|
|
||||||
buildah build -t kontor-quarkus:0.3.0 kontor-quarkus
|
|
||||||
fi
|
fi
|
||||||
if podman container exists kontor-quarkus; then
|
if podman container exists kontor-quarkus; then
|
||||||
if podman ps -q --filter "name=kontor-quarkus"; then
|
if podman ps -q --filter "name=kontor-quarkus"; then
|
||||||
@@ -159,9 +153,6 @@ fi
|
|||||||
echo "==> Setting up container kontor-echo"
|
echo "==> Setting up container kontor-echo"
|
||||||
if podman image exists localhost/kontor-echo:0.3.0; then
|
if podman image exists localhost/kontor-echo:0.3.0; then
|
||||||
echo " => Image localhost/kontor-echo:0.3.0 available"
|
echo " => Image localhost/kontor-echo:0.3.0 available"
|
||||||
else
|
|
||||||
echo " => Baue Image localhost/kontor-echo:0.3.0"
|
|
||||||
buildah build -t kontor-echo:0.3.0 kontor-echo
|
|
||||||
fi
|
fi
|
||||||
if podman container exists kontor-echo; then
|
if podman container exists kontor-echo; then
|
||||||
if podman ps -q --filter "name=kontor-echo"; then
|
if podman ps -q --filter "name=kontor-echo"; then
|
||||||
@@ -184,9 +175,6 @@ fi
|
|||||||
echo "==> Setting up container kontor-fiber"
|
echo "==> Setting up container kontor-fiber"
|
||||||
if podman image exists localhost/kontor-fiber:0.3.0; then
|
if podman image exists localhost/kontor-fiber:0.3.0; then
|
||||||
echo " => Image localhost/kontor-fiber:0.3.0 available"
|
echo " => Image localhost/kontor-fiber:0.3.0 available"
|
||||||
else
|
|
||||||
echo " => Baue Image localhost/kontor-fiber:0.3.0"
|
|
||||||
buildah build -t kontor-fiber:0.3.0 kontor-fiber
|
|
||||||
fi
|
fi
|
||||||
if podman container exists kontor-fiber; then
|
if podman container exists kontor-fiber; then
|
||||||
if podman ps -q --filter "name=kontor-fiber"; then
|
if podman ps -q --filter "name=kontor-fiber"; then
|
||||||
@@ -209,11 +197,7 @@ fi
|
|||||||
echo "==> Setting up container kontor-javalin"
|
echo "==> Setting up container kontor-javalin"
|
||||||
if podman image exists localhost/kontor-javalin:0.3.0; then
|
if podman image exists localhost/kontor-javalin:0.3.0; then
|
||||||
echo " => Image localhost/kontor-javalin:0.3.0 available"
|
echo " => Image localhost/kontor-javalin:0.3.0 available"
|
||||||
else
|
|
||||||
echo " => Baue Image localhost/kontor-javalin:0.3.0"
|
|
||||||
buildah build -t kontor-javalin:0.3.0 kontor-javalin
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if podman container exists kontor-javalin; then
|
if podman container exists kontor-javalin; then
|
||||||
if podman ps -q --filter "name=kontor-javalin"; then
|
if podman ps -q --filter "name=kontor-javalin"; then
|
||||||
echo " => kontor-javalin is running"
|
echo " => kontor-javalin is running"
|
||||||
|
|||||||
Reference in New Issue
Block a user