Skip to content
Snippets Groups Projects
Commit e5e6f755 authored by Paweł Sierota's avatar Paweł Sierota
Browse files

Fixed bad path in copy_static_cntent job

parent e5b42a75
No related branches found
No related tags found
No related merge requests found
Pipeline #83753 canceled
...@@ -65,7 +65,7 @@ copy_static_cntent: #This is an example job name. Please change it change ac ...@@ -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 - envsubst < k8s-manifests/kubeconfig.templ.yml > kubeconfig.yml
- APP_POD=`kubectl get pod | awk -v patt=${APP_NAME} '$1 ~ patt {print $1}'` - APP_POD=`kubectl get pod | awk -v patt=${APP_NAME} '$1 ~ patt {print $1}'`
- echo $APP_POD - 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 '--' - 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 allow_failure: true
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment