You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/services/cicd.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -463,6 +463,7 @@ If you want only specific artifacts in your job, you should have a look at [depe
463
463
464
464
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.
465
465
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
+
Additionally the variable `DOCKER_TAG`, which is the tag of the image is exported in the `dotenv` file.
466
467
The jobs would look something like this:
467
468
```yaml
468
469
build base:
@@ -485,6 +486,9 @@ build software:
485
486
`build base`is using additionally the building block `.dynamic-image-name`, while `build software` is unchanged.
486
487
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.
487
488
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
+
488
492
### Image cleanup
489
493
Images pushed to [CSCS_REGISTRY_PATH](#ci-variables) are cleaned daily according to the following rules:
0 commit comments