Skip to content

deploymode/populate-secrets-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Populate Gitlab Project Variables from .env file

Install

# From git (in any project)
uv pip install "git+https://github.com/deploymode/populate-secrets-gitlab.git"

Usage

Set your Gitlab personal access token:

export GITLAB_TOKEN=...

List variables

# Show keys and non-masked values
populate-gitlab list --environment uat --gitlab-host gitlab.example.com --project my-group/my-project

# Show all values including masked secrets
populate-gitlab list --environment uat --gitlab-host gitlab.example.com --project my-group/my-project --sensitive

Write variables from .env file

populate-gitlab write \
  --env-file path/to/.env \
  --environment uat \
  --gitlab-host gitlab.example.com \
  --project my-group/my-project \
  --mask \
  --exclude APP_NAME,LOG_CHANNEL

Get/export variables

populate-gitlab get --environment uat --gitlab-host gitlab.example.com --project my-group/my-project --export

About

Populate Gitlab CI/CD Variables from a dotenv file

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages