Skip to content

Commit c2c21de

Browse files
add GT4Py as example project using dynamic-image-name (#197)
@egparedes is about to modify the gt4py pipeline, and I'd like to link to their project for the `dynamic-image-name` block as an example. --------- Co-authored-by: Mikael Simberg <[email protected]>
1 parent a99f96d commit c2c21de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/services/cicd.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ If you want only specific artifacts in your job, you should have a look at [depe
463463

464464
There is also a building block in the templates, name `.dynamic-image-name`, which you can use to get rid for most of the boilerplate.
465465
It is important to note that this building block will export the dynamic name under the hardcoded name `BASE_IMAGE` in the `dotenv` file.
466+
The variable `DOCKER_TAG`, containing the tag of the image, is also exported in the `dotenv` file.
466467
The jobs would look something like this:
467468
```yaml
468469
build base:
@@ -485,6 +486,9 @@ build software:
485486
`build base` is using additionally the building block `.dynamic-image-name`, while `build software` is unchanged.
486487
Have a look at the definition of the block `.dynamic-image-name` in the file [.ci-ext.yml](https://gitlab.com/cscs-ci/recipes/-/blob/master/templates/v2/.ci-ext.yml) for further notes.
487488

489+
!!! example "GT4Py example"
490+
An example using `.dynamic-image-name` in action can be found in the [gt4py repository](https://github.com/GridTools/gt4py/tree/main/ci).
491+
488492
### Image cleanup
489493
Images pushed to [CSCS_REGISTRY_PATH](#ci-variables) are cleaned daily according to the following rules:
490494

0 commit comments

Comments
 (0)