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
739eb9d4
Commit
739eb9d4
authored
Nov 30, 2021
by
Jamie Reid
Committed by
Marcel Amirault
Nov 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Add file variable expansion warning to CI/CD variables
parent
447acc66
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
doc/ci/variables/index.md
doc/ci/variables/index.md
+5
-0
No files found.
doc/ci/variables/index.md
View file @
739eb9d4
...
...
@@ -293,6 +293,11 @@ Use the variables in a job script like this:
kubectl config set-cluster e2e
--server
=
"
$KUBE_URL
"
--certificate-authority
=
"
$KUBE_CA_PEM
"
```
WARNING:
Be careful when assigning the value of a file variable to another variable. The other
variable takes the content of the file as its value,
**not**
the path to the file.
See
[
issue 29407
](
https://gitlab.com/gitlab-org/gitlab/-/issues/29407
)
for more details.
An alternative to
`File`
type variables is to:
-
Read the value of a CI/CD variable (
`variable`
type).
...
...
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