-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a separate section about file mounting (#19)
- Loading branch information
1 parent
79a22c5
commit 7323bd1
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. _files-desc: | ||
|
||
Files | ||
***** | ||
|
||
Overview | ||
++++++++ | ||
|
||
Each of the step containers can have a number of files mounted - those files can be accessed from within the step script. Files are strictly connected with secrets, as their content is taken from the content of the secrets. The mount path provided in the secret has to be an absolute path. | ||
|
||
.. note:: | ||
File content can't be provided inline - it has to reference an already existing secret. The secret must be of ``generic`` type. | ||
|
||
Example | ||
------- | ||
|
||
Here's an example of mounting a file into a pipeline step. Keep in mind that the generic ``content`` secret has been created using the IceCI UI and is available in the cluster. | ||
|
||
.. code-block:: yaml | ||
steps: | ||
- name: step1 | ||
containerRun: | ||
image: busybox | ||
files: | ||
- path: /var/myfile | ||
fromSecret: content | ||
script: | | ||
cat /var/myfile |