Allow autoupdater check in CI jobs
As autoupdater configuration files sometimes change after time it could be usefull to check if configuration is working.
In projects we could use autoupdater container in latest version and run check command using CI environmental variables.
However token in CI_JOB_TOKEN
variable allow for reading project but, autoupdater require that user has at least developer acces to check or update.
If we want to make autoupdater check in CI we should allow to check projects for every user that see project and that is all.
Example of job (in test stage) in CI will look like this:
test-autoupdater-configuration:
image:
name: "containers.projects.task.gda.pl/apl/autoupdater:latest"
entrypoint: [""]
tags:
- "docker"
stage: "test"
script: "autoupdater --token ${CI_JOB_TOKEN} check --project ${CI_PROJECT_PATH} --branch ${CI_COMMIT_REF_NAME}"