Skip to content

Commit 6e6d193

Browse files
authored
Trigger container build manually (#60)
Change GitHub action of container build so that it is only triggered when pushing into main and not for every push in a MR. Also a manual build is now possible. The instructions were added to the README.
1 parent bd2274b commit 6e6d193

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

.github/workflows/build-container.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: Build Docker Container
33
on:
44
push:
55
branches:
6-
- main
7-
pull_request:
8-
branches:
9-
- main
6+
- main
7+
workflow_dispatch: # Manual trigger
108

119
jobs:
1210
build:

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ Probtest is a suite of python scripts to test various aspects of weather and cli
55
## Table of contents
66
1. [Commands](#commands)
77
2. [Quick start guide](#quick-start-guide)
8-
3. [Developing in probtest](#developing-in-probtest)
8+
3. [Developing probtest](#developing-probtest)
9+
4. [Probtest container](#probtest-container)
910

1011
## Commands
1112

@@ -275,3 +276,28 @@ actually committing:
275276
```console
276277
pre-commit run --all-files
277278
```
279+
280+
## Probtest Container
281+
282+
Prebuilt Docker images for the latest Probtest releases are available on Docker Hub: [c2sm/probtest](https://hub.docker.com/r/c2sm/probtest/tags)
283+
284+
### Build the Probtest Container via GitHub Actions
285+
286+
You can also build the Probtest Docker image yourself using the GitHub Actions workflow defined in [`build-container.yml`](.github/workflows/build-container.yml).
287+
288+
#### Steps:
289+
290+
1. Navigate to the `Actions` tab of this repository.
291+
2. Select the `Deploy image to DockerHub and GitHub Release` workflow from the list.
292+
3. Click the `Run workflow` button (top-right) and confirm.
293+
4. Wait for the workflow to complete (approximately 50 minutes).
294+
5. Once completed, open the workflow run and scroll down to the `Artifacts` section.
295+
6. Download the `probtest_image.tar` artifact.
296+
297+
#### Load the Image into Docker
298+
299+
To load the downloaded image into your local Docker installation, run:
300+
301+
```bash
302+
docker load -i probtest_image.tar
303+
```

0 commit comments

Comments
 (0)