diff --git a/scripts/build.sh b/scripts/build.sh index 4b5f880..17b5426 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,2 +1,3 @@ -mvn clean package -DskipTests -Dquarkus.container-image.push=false \ +mvn clean package -DskipTests -Pnative \ + -Dquarkus.container-image.push=false \ -Dquarkus.container-image.registry=git.demonkernel.io.vn diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 0000000..1becc04 --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +CURRENT_DIR=$(pwd) +SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd) + +cd "$SCRIPT_DIR/.." + +kubectl delete all --all -n drinkool-backend +kubectl apply -f k8s.yaml -n drinkool-backend + +cd "$CURRENT_DIR" \ No newline at end of file