Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic environment URL

I saw on the gitlab documentation (https://docs.gitlab.com/ee/ci/environments.html#set-dynamic-environment-urls-after-a-job-finishes) that we can use a dynamic url by using artifacts:reports:dotenv so I tried to generate a random port under script, then i store that port under a variable and I use it the environment url (it is quite similar to the example provided in the documentation). But the pipeline failed and I got yaml error with the following message error: "artifacts:reports config contain unknown keys: dotenv".

It seems that I should install dotenv(https://github.com/bkeepers/dotenv) but where should I do this installation ? maybe on the gitlab host ? or how it could be resolved ?

Thanks in advance!

like image 749
D.Joe Avatar asked Jan 27 '26 11:01

D.Joe


1 Answers

unknown keys: dotenv suggests that this is not supported in your installation of GitLab.

Docs you mentioned says Introduced in GitLab 12.9..

What is your GitLab version? Version can be checked by going to <gitlab url>/help.

like image 185
makozaki Avatar answered Jan 29 '26 13:01

makozaki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!