Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ee8cb300
Commit
ee8cb300
authored
Sep 24, 2021
by
Hao Chun Chang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change example of using `File` type CI variable.
parent
7546a09e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
doc/ci/variables/index.md
doc/ci/variables/index.md
+1
-1
No files found.
doc/ci/variables/index.md
View file @
ee8cb300
...
@@ -301,7 +301,7 @@ An alternative to `File` type variables is to:
...
@@ -301,7 +301,7 @@ An alternative to `File` type variables is to:
```
shell
```
shell
# Read certificate stored in $KUBE_CA_PEM variable and save it in a new file
# Read certificate stored in $KUBE_CA_PEM variable and save it in a new file
echo
"
$KUBE_CA_PEM
"
>
"
$(
pwd
)
/kube.ca.pem"
cat
"
$KUBE_CA_PEM
"
>
"
$(
pwd
)
/kube.ca.pem"
# Pass the newly created file to kubectl
# Pass the newly created file to kubectl
kubectl config set-cluster e2e
--server
=
"
$KUBE_URL
"
--certificate-authority
=
"
$(
pwd
)
/kube.ca.pem"
kubectl config set-cluster e2e
--server
=
"
$KUBE_URL
"
--certificate-authority
=
"
$(
pwd
)
/kube.ca.pem"
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment