Setup cloud build
Note
View on fireship: Link
Build Page
1. Goto2. Go to triggers in the sidebar and select trigger.
3. Setup local dev environment.
Add the .env file with all the environment variables.
Get the Keys from google-cloud-iam.
Run the following command.
gcloud kms encrypt --plaintext-file=.env --ciphertext-file=.env.enc --location=global --keyring=cloud-build-keyring --key=cloud-build-key
- Add the
cloudbuild.yaml
file at the root of your project. Copy the config file reference fron here. - Push to the repo.