Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,29 @@ References:
- https://docs.gitlab.com/ce/ssh/README.html
- https://docs.gitlab.com/ee/ci/ssh_keys/README.html

(Github CI) Access to private repositories
Comment thread
130s marked this conversation as resolved.
Outdated
------------------------------------------

Follow a process very similar to the Gitlab one, described above, to add public and private SSH keys to your repositories.
Comment thread
AndyZe marked this conversation as resolved.

#. Add the private SSH key to your target repository, under Settings-Secrets and Variables-Actions-Secrets.
#. Add the public SSH key to the dependency repository, under Settings-Deploy Keys.
#. Modify the industrial_ci yaml config, adding an action to clone the dependency as follows. The following example clones two dependencies:

.. code-block:: yaml

- uses: actions/checkout@v4 # dependency1
with:
ssh-key: ${{ secrets.DEPENDENCY1 }}
Comment thread
130s marked this conversation as resolved.
repository: your_org_name/dep1_repo
path: dep1_repo
- uses: actions/checkout@v4 # dependency2
with:
ssh-key: ${{ secrets.DEPENDENCY2 }}
repository: your_org_name/dep2_repo
path: dep2_repo
Comment thread
AndyZe marked this conversation as resolved.
Outdated


(Recommended) Subscribe to the change in this repo (industrial_ci)
---------------------------------------------------------------------------------

Expand Down