Skip to content

Commit

Permalink
update var
Browse files Browse the repository at this point in the history
  • Loading branch information
brokedba authored Sep 12, 2023
1 parent d2ea0d6 commit 9976cd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oci_devops/build_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
# aws_secret_access_key: ocid1.vaultsecret.oc1.iad.yyyy
# ACCESS_KEY: "[ACCESS_KEY_VAULT_SECRET_OCID]"
# SECRET_KEY: "[SECRET_KEY_VAULT_SECRET_OCID]"
SSH_PUB_KEY: ${ssh_key_sec}
# exportedVariables are made available to use as parameters in successor Build Pipeline stages
# For this Build to run, the Build Pipeline needs to have a BUILDRUN_HASH parameter set
exportedVariables:
Expand Down Expand Up @@ -73,7 +74,8 @@ steps:
cd ${OCI_PRIMARY_SOURCE_DIR}/${TF_PROVIDER_PATH}/${TF_STACK_DIR}
echo " check the execution plan"
export TF_VAR_region="${REGION}"
export TF_VAR_ssh_public_key=${ssh_public_key_1}${ssh_public_key_2}
export TF_VAR_ssh_public_key=${SSH_PUB_KEY}
# export TF_VAR_ssh_public_key=${ssh_public_key_1}${ssh_public_key_2}
echo "ssh public key => ${TF_VAR_ssh_public_key} "
export TF_VAR_private_key_path='./oci_key.pem'
terraform plan -out=${OCI_PRIMARY_SOURCE_DIR}/instance.tfplan
Expand Down

0 comments on commit 9976cd9

Please sign in to comment.