Skip to content

Commit

Permalink
Added a separate section about file mounting (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandruszak authored Aug 19, 2020
1 parent 79a22c5 commit 7323bd1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/pages/pipelines/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Additional options
:maxdepth: 4

building_secrets.rst
building_files.rst
building_template.rst
building_runtimeprofiles.rst

29 changes: 29 additions & 0 deletions source/pages/pipelines/building_files.rst
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

0 comments on commit 7323bd1

Please sign in to comment.