From 954b5aee35b3ec52a507deec66be78938e9181e4 Mon Sep 17 00:00:00 2001 From: Frank Sauerburger <frank@sauerburger.com> Date: Mon, 23 Oct 2023 21:37:38 +0200 Subject: [PATCH] Set global namespace --- .gitlab-ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e958a4e..dc42a75 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,10 +29,11 @@ production_deploy: image: alpine/k8s:1.28.2 script: - kubectl config use-context frank/tls-tracking:cumulus-agent - - kubectl -n $NAMESPACE apply -f "$AWS_ROUTE53_CREDS" - - kubectl -n $NAMESPACE apply -f kubernetes.yaml - - kubectl -n $NAMESPACE wait --for=condition=ready pod -l app=tls-tracking-webserver - - kubectl -n $NAMESPACE cp public $(kubectl -n $NAMESPACE get pod -l app=tls-tracking-webserver -o name):/var/www/ + - kubectl config set-context --current --namespace $NAMESPACE + - kubectl apply -f "$AWS_ROUTE53_CREDS" + - kubectl apply -f kubernetes.yaml + - kubectl wait --for=condition=ready pod -l app=tls-tracking-webserver + - kubectl cp public $(kubectl get pod -l app=tls-tracking-webserver -o name):/var/www/ environment: name: Production -- GitLab