Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Access environment variables in env?

Screenshot 2019-10-10 at 10.33.01.png

1 Reply
Copilot Lvl 2
Message 2 of 2

Re: Access environment variables in env?

Hey! You can use an action with the `::set-env` special function :


- name: Env Setup
  run: |
    echo ::set-env name=CONTAINER_IMAGE::$CI_REGISTRY/(...)
    echo ::set-env name=CONTAINER_IMAGE_LATEST::$CI_REGISTRY/(...)
env:    CI_REGISTRY:


Then these two env vars will be available in the subsequent steps.