Commit Local changes to GIT
Note
It is recommended to stick to using the toolkit either via CLI or via Jenkins.
Note
The below process will push the updated files to the develop branch of the GIT Repository. Successful completion of the resource specific terraform-apply pipeline in Jenkins will update to the main branch.
There can be scenarios when updating the terraform_files folder manually via CLI is necessary. Below are some examples:
- The setUpOCI script is executed to generate tfvars for some resources via CLI.
- The variables_<region>.tf file is modified to update image OCID or SSH Key for Compute or Database etc.
Follow below steps to sync local terraform_files folder to OCI DevOps GIT Repo:
Step 1:
Step 2: Below screenshot shows changes in variables_phoenix.tf file under phoenix/compute folder.Step 3:
Step 4:Step 5: