Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
K8s Templates
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab CI Templates
K8s Templates
Commits
e5e6f755
Commit
e5e6f755
authored
2 years ago
by
Paweł Sierota
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: build
Stage: deploy
Stage: mgmt
Stage: post_deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
with
1 addition
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
e5e6f755
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment