From 577a05eb49cca326d2ec6838c57fefd579dd4794 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Mon, 23 Oct 2023 21:03:50 +0200 Subject: [PATCH] Prefix all commands with namespace --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ac9e161..1fdc178 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,9 +30,9 @@ production_deploy: image: alpine/k8s:1.28.2 script: - kubectl config use-context frank/tls-tracking:cumulus-agent - - kubectl apply -n "$NAMESPACE" -f kubernetes.yaml - - kubectl wait --for=condition=ready pod -l app=tls-tracking - - kubectl cp public deploy/tls-tracking-webserver:/var/www/ + - kubectl -n $NAMESPACE apply -f kubernetes.yaml + - kubectl -n $NAMESPACE wait --for=condition=ready pod -l app=tls-tracking + - kubectl -n $NAMESPACE cp public deploy/tls-tracking-webserver:/var/www/ environment: name: Production -- GitLab