platform-template/cloudbuild-github.yaml [23:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      terraform init
    else
      for dir in env/*/
      do
        cd ${dir}
        env=${dir%*/}
        env=${env#*/}
        echo ""
        echo "*************** TERRAFORM INIT ******************"
        echo "******* At environment: ${env} ********"
        echo "*************************************************"
        terraform init -no-color || exit 1
        cd ../../
      done
    fi
  id: tf init
  entrypoint: sh
  secretEnv:
  - GITHUB_TOKEN
  - GITHUB_USER
- name: 'hashicorp/terraform:1.0.0'
  args:
  - '-c'
  - |
    export TF_VAR_github_token=$$GITHUB_TOKEN
    export TF_VAR_github_user=$$GITHUB_USER
    export TF_VAR_github_email=$$GITHUB_EMAIL
    export TF_VAR_github_org=$$GITHUB_ORG
    export TF_VAR_project_id=$PROJECT_ID
    export TF_VAR_org_id=$$GCP_ORG
    export TF_VAR_folder_id=$$GCP_FOLDER
    export TF_VAR_billing_account=$$GCP_BILLINGAC
    export TF_VAR_acm_repo=$$ACM_REPO
    export TF_VAR_subnet_01_region=$$INFRA_REGION
    export TF_VAR_subnet_02_region=$$INFRA_SEC_REGION
    export TF_VAR_app_factory_project_id=$$APP_FACTORY_PROJECT_ID
    export TF_VAR_app_factory_project_num=$$APP_FACTORY_PROJECT_NUM
    export TF_VAR_secrets_project_id=$$SECRETS_PROJECT
    git config --global url."https://$$GITHUB_USER:$$GITHUB_TOKEN@github.com".insteadOf "https://github.com"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



platform-template/cloudbuild-webhook.yaml [41:79]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      terraform init
    else
      for dir in env/*/
      do
        cd ${dir}
        env=${dir%*/}
        env=${env#*/}
        echo ""
        echo "*************** TERRAFORM INIT ******************"
        echo "******* At environment: ${env} ********"
        echo "*************************************************"
        terraform init -no-color || exit 1
        cd ../../
      done
    fi
  id: tf init
  entrypoint: sh
  secretEnv:
  - GITHUB_TOKEN
  - GITHUB_USER
- name: 'hashicorp/terraform:1.0.0'
  args:
  - '-c'
  - |
    export TF_VAR_github_token=$$GITHUB_TOKEN
    export TF_VAR_github_user=$$GITHUB_USER
    export TF_VAR_github_email=$$GITHUB_EMAIL
    export TF_VAR_github_org=$$GITHUB_ORG
    export TF_VAR_project_id=$PROJECT_ID
    export TF_VAR_org_id=$$GCP_ORG
    export TF_VAR_folder_id=$$GCP_FOLDER
    export TF_VAR_billing_account=$$GCP_BILLINGAC
    export TF_VAR_acm_repo=$$ACM_REPO
    export TF_VAR_subnet_01_region=$$INFRA_REGION
    export TF_VAR_subnet_02_region=$$INFRA_SEC_REGION
    export TF_VAR_app_factory_project_id=$$APP_FACTORY_PROJECT_ID
    export TF_VAR_app_factory_project_num=$$APP_FACTORY_PROJECT_NUM
    export TF_VAR_secrets_project_id=$$SECRETS_PROJECT
    git config --global url."https://$$GITHUB_USER:$$GITHUB_TOKEN@github.com".insteadOf "https://github.com"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



