From 1f9f7e275c905643a05948f2665946d6c288d5b0 Mon Sep 17 00:00:00 2001 From: baschno Date: Mon, 29 Dec 2025 18:41:02 +0100 Subject: [PATCH] add justfile for test deployment --- Test-Deployment/justfile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Test-Deployment/justfile diff --git a/Test-Deployment/justfile b/Test-Deployment/justfile new file mode 100644 index 0000000..fb733ed --- /dev/null +++ b/Test-Deployment/justfile @@ -0,0 +1,37 @@ +set fallback:=true + +export EXTERNAL := env("EXTERNAL_DOMAIN", "") + +install-nginx: + #!/bin/bash + set -euo pipefail + just env::check + + if [ -z "${EXTERNAL}" ]; then + echo "ERROR: EXTERNAL_DOMAIN environment variable is not set." + exit 1 + fi + + kubectl apply -f nginx-deployment.yaml + gomplate -f nginx-certificate-gomplate.yaml | kubectl apply -f - + gomplate -f nginx-ingress-route-gomplate.yaml | kubectl apply -f - + +install-dishes: + #!/bin/bash + set -euo pipefail + just env::check + + if [ -z "${EXTERNAL}" ]; then + echo "ERROR: EXTERNAL_DOMAIN environment variable is not set." + exit 1 + fi + + kubectl apply -f dishes-deployment.yaml + gomplate -f dishes-certificate-gomplate.yaml | kubectl apply -f - + gomplate -f dishes-ingress-route-gomplate.yaml | kubectl apply -f - + +remove-nginx: + kubectl delete ns test || true + +remove-dishes: + kubectl delete ns dishes || true