Skip to content

Commit b17533f

Browse files
authored
Merge pull request #1360 from input-output-hk/jpraynaud/1356-test-docker-deploy-runbooks
Runbooks for test distributions and deployments
2 parents 48ff787 + 5be0cb9 commit b17533f

File tree

10 files changed

+63
-1
lines changed

10 files changed

+63
-1
lines changed

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
if: inputs.environment == matrix.environment
6363
uses: actions/checkout@v3
6464

65-
- name: ${{ inputs.dry_run == 'true' && 'Plan' || 'Apply' }} terraform infrastructure
65+
- name: ${{ inputs.dry_run == true && 'Plan' || 'Apply' }} terraform infrastructure
6666
if: inputs.environment == matrix.environment
6767
uses: ./.github/workflows/actions/deploy-terraform-infrastructure
6868
with:

docs/runbook/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ This page gathers the available guides to operate a Mithril network.
1717
| **Fix terraform lock** | [terraform-lock](./terraform-lock/README.md) | Fix a terraform lock in CD workflows. |
1818
| **Manage SSH access to infrastructure** | [ssh-access](./ssh-access/README.md) | Manage SSH access on the VM of the infrastructure for a user. |
1919
| **Upgrade VM of infrastructure** | [upgrade-vm](./upgrade-vm/README.md) | Upgrade the VM of the infrastructure of a Mithril network. |
20+
| **Create test Docker distribution** | [test-docker-distribution](./test-docker-distribution/README.md) | Create a custom test Docker distribution. |
21+
| **Deploy a test network** | [test-docker-distribution](./test-deploy-network/README.md) | Manually deploy a test distribution to a test Mithril network. |
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Manually deploy a test distribution to a test Mithril network.
2+
3+
## Introduction
4+
5+
From time to time, we may need to deploy manually on a test Mithril network a test distribution in order to test unreleased features independently from the regular [release process](https://mithril.network/doc/adr/3). In that case, we have the opportunity to manually deploy to a pre-configured network a specific distribution.
6+
7+
## Run the associated 'Test network deploy' GitHub Actions workflow
8+
9+
Go to the page of the workflow with your browser: [Docker image test](https://github.com/input-output-hk/mithril/actions/workflows/test-deploy.yml)
10+
11+
Then, click on the **Run workflow** button:
12+
13+
![Run workflow button](./img/run-workflow-button.png)
14+
15+
Then fill the form to manually run the workflow:
16+
17+
![Run workflow form](./img/run-workflow-form.png)
18+
19+
> [!WARNING]
20+
> - The **Mithril image id** of the of the distribution to deploy must be published on the [package registry](https://github.com/orgs/input-output-hk/packages?repo_name=mithril)
21+
22+
> [!CAUTION]
23+
> It is highly recommended to run with the **Dry run** option checked at first and make sure that the process works as expected
24+
> The deployment of a distribution can lead to irreversible damages or loss for the network
25+
26+
27+
The result should look like this in the GitHub Actions:
28+
29+
![Run workflow result](./img/run-workflow-result.png)
36.4 KB
Loading
30.8 KB
Loading
45.1 KB
Loading
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Create a custom test Docker distribution.
2+
3+
## Introduction
4+
5+
From time to time, we may need to create a test Docker distribution with custom arguments (notably the version of the Cardano CLi that is used).
6+
This is a convenient way for testing early releases of the Cardano node. This is also commonly used to create a Docker distribution from an unmerged PR.
7+
8+
## Run the associated 'Docker images test' GitHub Actions workflow
9+
10+
Go to the page of the workflow with your browser: [Docker image test](https://github.com/input-output-hk/mithril/actions/workflows/test-docker.yml)
11+
12+
Then, click on the **Run workflow** button:
13+
14+
![Run workflow button](./img/run-workflow-button.png)
15+
16+
Then fill the form to manually run the workflow:
17+
18+
![Run workflow form](./img/run-workflow-form.png)
19+
20+
> [!WARNING]
21+
> - The SHA of the commit must have been run successfully in the CI workflow beforehand
22+
23+
> [!CAUTION]
24+
> It is highly recommended to run with the **Dry run** option checked at first and make sure that the process works as expected
25+
26+
27+
The result should look like this in the GitHub Actions:
28+
29+
![Run workflow result](./img/run-workflow-result.png)
30+
31+
You should also be able to see the newly created Docker images in the [package registry](https://github.com/orgs/input-output-hk/packages?repo_name=mithril)
37 KB
Loading
58.3 KB
Loading
59.9 KB
Loading

0 commit comments

Comments
 (0)