Setup cloud build

Note

View on fireship: Link

1. Goto Build Page

2. Go to triggers in the sidebar and select trigger.

3. Setup local dev environment.

  1. Add the .env file with all the environment variables.

  2. Get the Keys from google-cloud-iam.

  3. Run the following command.

gcloud kms encrypt   --plaintext-file=.env   --ciphertext-file=.env.enc   --location=global   --keyring=cloud-build-keyring   --key=cloud-build-key
  1. Add the cloudbuild.yaml file at the root of your project. Copy the config file reference fron here.
  2. Push to the repo.
Last Updated: 1/6/2020, 1:58:20 PM