cr_buildstep_secret: Create a buildstep for using Secret Manager
Description
This is the preferred way to manage secrets, rather than
cr_buildstep_decrypt, as it stores the encrypted file in the cloud
rather than in your project workspace.
Usage
cr_buildstep_secret(secret, decrypted, version = "latest", ...)
Arguments
secret
The secret data name in Secret Manager
decrypted
The name of the file the secret will be decrypted into
This is for downloading encrypted files from Google Secret Manager. You will need to add the
Secret Accessor Cloud IAM role to the Cloud Build service account to use it.
Once you have uploaded your secret file and named it, it is available for Cloud
Build to use.