From e5e6f755237e029566dbb0a717d679afc4455c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Sierota?= <psierota@man.poznan.pl> Date: Fri, 16 Dec 2022 15:12:25 +0000 Subject: [PATCH] Fixed bad path in copy_static_cntent job --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07c4661..683f6b6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,7 +65,7 @@ copy_static_cntent: #This is an example job name. Please change it change ac - envsubst < k8s-manifests/kubeconfig.templ.yml > kubeconfig.yml - APP_POD=`kubectl get pod | awk -v patt=${APP_NAME} '$1 ~ patt {print $1}'` - echo $APP_POD - - kubectl cp ./../static-html/index2.html $APP_POD:/tmp/ #Example line - copies file from repository to container + - kubectl cp ./static-html/index2.html $APP_POD:/tmp/ #Example line - copies file from repository to container - kubectl exec $APP_POD -- /bin/cp /tmp/index2.html /usr/share/nginx/html/index.html #Example line for manipulation inside container - copies files inside container. Command executes inside container starts after '--' allow_failure: true tags: -- GitLab