#Use Github secrets in Dagger

1 messages · Page 1 of 1 (latest)

sullen terrace
#

🧵

#

Here's how I would do it (there might be a better way, if so the experts will correct me):

  • In your github actions config, inject the secrets you want as env variables
  • In Dagger, reference those secrets with env://FOO
  • This will work either with explicit CLI flags, or user defaults loaded from .env
somber gyro
# sullen terrace 🧵

exactly we want to use this way only
lets say we have 3 diff env in github repo settings for github action like

  1. dev
  2. staging
  3. production

and how while devloping locally we want to sync secrets & variables for local/dev environment while devloping with dagger

is this correct way and secure?

hollow tiger