I am currently implementing a CI Pipeline using Tekton. I was wondering if there is a way to use some kind of valueFromEnv
for pipeline params.
For example to authenticate a Task for sonarqube analysis with my company's sonar host i need the login token, which I would rather want to insert via reference to a secret than passing it directly.
As I am relatively new to tekton I am unsure if I just haven't grasped the tekton way of doing this. Two possibilities that crossed my mind were:
- A "Pre-Task" which reads the env in it's step definition and publishes it as a result (which then can be used as param to the next Task)
- Mounting the secret as a file for the Task to load the secret (e.g. by
cat
ting it)
Both of those ideas do not feel like I should do it this way, but maybe I am wrong here.
Any help is appreciated!