Work in Progress
Collection of tools to ease the deploy of applications
Installation
Install to /usr/local/bin
curl -sf https://gobinaries.com/BraspagDevelopers/bpdt | sh
You can also specify a custom directory where to download the binary file
# Install on the current directory
curl -sf https://gobinaries.com/BraspagDevelopers/bpdt | PREFIX=. sh
# Install on /tmp
curl -sf https://gobinaries.com/BraspagDevelopers/bpdt | PREFIX=/tmp sh
go install
method
go install github.com/BraspagDevelopers/bpdt@latest
Usage
bpdt export-settings
Convert multiples appsettings.*.json
files to .env
file syntax
bpdt export-settings [-d <dir>] -f <file1> -f <file2>
Flags
--directory
, -d
: Directory where the files will be looked for
--file
, -f
: Files that will be used as input
bpdt patch-nuget
Add clear text passwords to a nuget config file
bpdt patch-nuget <path> <nugetSource> <username> <password>
Arguments
<path>
: Path of the nuget config file
<nugetSource>
: Nuget source to which add the credentials
<username>
: Username
<password>
: Password
bpdt env-to-yaml
Add entries to a YAML element using a .env file as input
bpdt env-to-yaml <.env-file-path> <yaml-file-path>
Arguments
<.env-file-path>
: Path of the .env file
<yaml-file-path>
: Path of the YAML file
Flags
--directory
, -d
: Directory where the files will be looked for
--ypath
: A period separated string indicating where in the YAML the variables should be appended
bpdt ref-secrets
Adds a secret key reference variable to a yaml file.
The file is tipically a kubernetes Deployment or Pod resource file.
bpdt ref-secrets <file-path> <secret-name>
Arguments
<file-path>
: Path of the .env file
<secret-name>
: Path of the YAML file
Flags
-
--ypath
: A period separated string indicating where in the YAML the variables are placed. Default: spec.template.spec.containers.0.env
-
--directory
, -d
:: Directory where the files will be looked for. Default: working directory
-
--prefix
, -p
: The prefix for the secret variables. Default: #<Secret>{
-
--suffix
, -s
: The suffix for the secret variables. Default: }#