From 7e5b61f7bc7251a40dee6b0b07492d5b7bea5ded Mon Sep 17 00:00:00 2001
From: Frank Sauerburger <frank@sauerburger.com>
Date: Mon, 23 Oct 2023 21:27:46 +0200
Subject: [PATCH] Get name of target pod

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b70196..e958a4e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,7 +32,7 @@ production_deploy:
   - 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 deploy/tls-tracking-webserver:/var/www/
+  - kubectl -n $NAMESPACE cp public $(kubectl -n $NAMESPACE get pod -l app=tls-tracking-webserver -o name):/var/www/
 
   environment:
     name: Production
-- 
GitLab