diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dc42a753c4ec0c3a10b7aba0ed937ac07960953e..babf2fb2134641c462b08e274b7fcf0613c31231 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,7 +33,7 @@ production_deploy:
   - 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/
+  - kubectl cp public $(kubectl get pod -l app=tls-tracking-webserver -o name | cut -d '/' -f2):/var/www/
 
   environment:
     name: Production