I’ve read the post on here about CircleCI 2.0 and I have all of my build working, except for the final git checkout and push to the infrastructure settings repo.
- fetches docker image to use on CircleCI
- creates the tagged docker image of the sample-app-frontend-acme
but then fails to checkout the repo that contains the live infrastructure settings with the error:
Cloning into '/tmp/infra-live-acme'... ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Exited with code 128
terraform-update-variable --name "version" --value "$CIRCLE_SHA1" --tfvars-path "$SERVICE_PATH/terraform.tfvars" --git-url "email@example.com:myorg/infra-live-acme.git" --git-checkout-path "/tmp/infra-live-acme" terragrunt apply --terragrunt-working-dir "/tmp/infra-live-acme/$SERVICE_PATH" -input=false -auto-approve
I’m unsure how to check the credentials used by CircleCI or Terraform in the above code. From what I understand, its terraform performing the git checkout - but I may be wrong.
If its CircleCI performing the checkout then I’m unsure how to proceed. CircleCI already has a ssh key to the
infra-live-acme repo (because its building the repo).