Skip to content

Environment Variables

Configure builds with environment variables and secrets.

  1. Go to Settings (org, repo, or pipeline level)
  2. Click Variables or Secrets
  3. Add key-value pairs
ScopeVisibility
OrganizationAll repos in org
RepositoryAll pipelines in repo
PipelineSingle pipeline

In shell scripts:

Terminal window
echo $MY_VARIABLE
flutter build --dart-define=API_URL=$API_URL

In configs:

{{MY_VARIABLE}}
  • Use secrets for sensitive data (API keys, passwords)
  • Use descriptive names
  • Document what each variable is for