Skip to content

Commit 7bac603

Browse files
committed
feat: separate secrets and variables into separate tables
1 parent e111eb9 commit 7bac603

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

doc/source/configuration/ci-cd.rst

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -136,37 +136,32 @@ Workflow Deployment
136136

137137
3. Add all required secrets and variables to repository either via the GitHub UI or GitHub CLI (may require repository owner)
138138

139-
.. raw:: html
140-
141-
<center><table style="padding: 5px;">
142-
<thead>
143-
<tr>
144-
<th style="text-align: center;padding: 5px;">Secrets</th>
145-
<th style="text-align: center;padding: 5px;">Variables</th>
146-
</tr>
147-
</thead>
148-
<tbody>
149-
<tr>
150-
<td style="text-align: center;padding: 5px;">KAYOBE_AUTOMATION_SSH_PRIVATE_KEY</td>
151-
<td style="text-align: center;padding: 5px;">REGISTRY_USERNAME</td>
152-
</tr>
153-
<tr>
154-
<td style="text-align: center;padding: 5px;">KAYOBE_VAULT_PASSWORD</td>
155-
<td style="text-align: center;padding: 5px;">REGISTRY_URL</td>
156-
</tr>
157-
<tr>
158-
<td style="text-align: center;padding: 5px;">REGISTRY_PASSWORD</td>
159-
</tr>
160-
<tr>
161-
<td style="text-align: center;padding: 5px;">TEMPEST_OPENRC</td>
162-
<td></td>
163-
</tr>
164-
</tbody>
165-
</table></center>
166-
167-
Note the above table shows the secrets and variable one may need to add to GitHub for a successful deployment.
168-
However, these secrets and variables might not all be required for example if :code:`github_registry` has been configured with a single shared registry then :code:`REGISTRY_USERNAME` and :code:`REGISTRY_URL` can be ignored.
169-
Also it is important that if you are using multiple environments and secrets and variables are not being shared then each will require an environment prefix added in the form `ENVIRONMENT_NAME_SECRET_OR_VARIABLE_NAME` for example if there was two environments each name :code:`production` and :code:`staging` then :code:`KAYOBE_AUTOMATION_SSH_PRIVATE_KEY` would be replaced by :code:`PRODUCTION_KAYOBE_AUTOMATION_SSH_PRIVATE_KEY` and :code:`STAGING_KAYOBE_AUTOMATION_SSH_PRIVATE_KEY`.
139+
+----------------------------------------------------------------------------------+
140+
| Secrets |
141+
+===================================+==============================================+
142+
| Single Environment | Multiple Environments |
143+
+-----------------------------------+----------------------------------------------+
144+
| KAYOBE_AUTOMATION_SSH_PRIVATE_KEY | <ENV_NAME>_KAYOBE_AUTOMATION_SSH_PRIVATE_KEY |
145+
+-----------------------------------+----------------------------------------------+
146+
| KAYOBE_VAULT_PASSWORD | <ENV_NAME>_PRODUCTION_KAYOBE_VAULT_PASSWORD |
147+
+-----------------------------------+----------------------------------------------+
148+
| REGISTRY_PASSWORD | <ENV_NAME>_REGISTRY_PASSWORD |
149+
+-----------------------------------+----------------------------------------------+
150+
| TEMPEST_OPENRC | <ENV_NAME>_PRODUCTION_TEMPEST_OPENRC |
151+
+-----------------------------------+----------------------------------------------+
152+
153+
+----------------------------------------------+
154+
| VARIABLES |
155+
+====================+=========================+
156+
| Single Environment | Multiple Environments |
157+
+--------------------+-------------------------+
158+
| REGISTRY_URL | <ENV_NAME>_REGISTRY_URL |
159+
+--------------------+-------------------------+
160+
| REGISTRY_USERNAME | <ENV_NAME>_USERNAME |
161+
+--------------------+-------------------------+
162+
163+
Note the above tables shows the secrets and variables one may need to add to GitHub for a successful deployment.
164+
When adding secrets and variables make sure to adhere to the naming standards and ensure the :code:`<ENV_NAME>` is replaced with all supported kayobe environments in uppercase.
170165

171166
4. Commit and push all newly generated workflows found under :code:`.github/workflows`
172167

0 commit comments

Comments
 (0)