diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07c4661ad663ac2ea1979c3efedede050df47c1a..683f6b61351389e3e41174f3c4c6cadc1f71ea96 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: