Skip to content

gitlab CI to update DB

Gernot Maier requested to merge new_database_workflow into main

Introduce automatic updating of mongoDB database on release of this repository.

Adds a new database with the name "CTAO-Simulation-Model-v0-1-0" for a release of this repository with the release tag "v0.1.0" (note that mongoDB names are not allowed to have '.', this is why they are replaced by '-').

The CI loops at this point over all model versions and uploads the verified models.

Tests:

  • run this CI without the restriction to run 'on release only'. The mongoDB db CTAO-Simulation-Model-v0-1-0" has been created and all unit tests are working fine (so this is good!).
  • added a new tag (v0.1.0) and uploading the DB worked fine (see job here).simtools unit tests run successfully with SIMTOOLS_DB_SIMULATION_MODEL='CTAO-Simulation-Model-v0-0-1'

This release runs only when a new tag (v*) is issued (note that gitlab does not differentiate between releases and tags).

I have add a protected tag in the setting of this repository, meaning that you have to be at least a 'maintainer' to add 'v*' tags.

Edited by Gernot Maier

Merge request reports