Environment variables and secrets from UI vs file

When I deploy via the Okteto UI and supply environment variables, they seem to get ignored completely. Likewise for secrets, they show up as undefined. My variables in a .env file that is pointed to by envFiles in my Okteto manifest do show up though.

I cannot find any documentation on this - are UI supplied variables ignored if there is a .env file in use?

Hi @nathanfig-sureify
Variables supplied from Okteto UI and Okteto Secrets are available as environment variables when deploying your app. You need to refer to them in your compose file to inject them into your container. Or refer to them in your.env file.
For example:

services:
  myapp:
     environment:
        - MY_SECRET=${MY_SECRET}

That makes sense, thank you!