Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/services/cicd.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ If you want only specific artifacts in your job, you should have a look at [depe

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.
It is important to note that this building block will export the dynamic name under the hardcoded name `BASE_IMAGE` in the `dotenv` file.
Additionally the variable `DOCKER_TAG`, which is the tag of the image is exported in the `dotenv` file.
The jobs would look something like this:
```yaml
build base:
Expand All @@ -485,6 +486,9 @@ build software:
`build base` is using additionally the building block `.dynamic-image-name`, while `build software` is unchanged.
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.

!!! example "GT4Py example"
An example using `.dynamic-image-name` in action can be found in the [gt4py repository](https://github.com/GridTools/gt4py/tree/main/ci)

### Image cleanup
Images pushed to [CSCS_REGISTRY_PATH](#ci-variables) are cleaned daily according to the following rules:

Expand Down