Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Azure by (7k points)

We  have set an Env variable: MY_ENV_VAR (in Project CI/CD Settings menu)

I see a message with says the environment variable is prefixed by K8S_SECRET_

My .gitlab-ci.yml:

deploy:

  only:

    - prod

  script:

    echo ${K8S_SECRET_MY_ENV_VAR}

It does not display the value in job...

1 Answer

0 votes
by (31.9k points)

Normal variables need no such prefix, so you simply need reference $MY_ENV_VAR

Want to become Azure Developer, check out this Microsoft Azure Training.

Related questions

Browse Categories

...