Skip to content

biome-sh/bio-plugin-secret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Biome Plugin Secret

This plugin adds do_secret_copy method which helps your deal with secret files

Usage

  1. Create .secrets directory in your repository or in the parent directory
  2. Add .secrets to .gitignore if it lives in the repository
  3. Put SECRET_FILE into .secrets
  4. If you project has multiple packages you can prefix secret name with pkg_name: $pkg_name-SECRET_FILE
pkg_build_deps+=(biome/bio-plugin-secret)

do_setup_environment() {
  source $(pkg_path_for biome/bio-plugin-secret)/lib/plugin.sh

  # Will try to copy:
  # * .secrets/PKG_NAME-netrc
  # * .secrets/netrc
  do_secret_copy netrc ~/.netrc
  do_secret_copy npmrc ~/.npmrc
  do_secret_copy maven-settings.xml ~/.maven-settings.xml
}

Consider source bio-plugin-secret

Releases

No releases published

Packages

No packages published

Languages