-
Hi @dflook, What's the best way to provide a I've tried providing Looking at how the write_credentials function works here, it appears to be copying an existing Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It wasn't intended for a I think the best way for you to provide the env:
TERRAFORM_PRE_RUN: |
cat >> $HOME/.terraformrc <<EOF
provider_installation {
direct {
exclude = ["registry.terraform.io/*/*"]
}
network_mirror {
url = "<YOUR_JFROG_DOMAIN>/artifactory/api/terraform/<REPOSITORY_KEY>/providers/"
}
}
EOF (I haven't tested this) |
Beta Was this translation helpful? Give feedback.
It wasn't intended for a
.terraformrc
file to be supplied, even though it takes care to use what is there and undo any changes it makes to it.$HOME
is shared by all container based action steps, so it could be placed there from within a previous container based action. There isn't an easy way to get this directory from the host runner, but it was/home/runner/work/_temp/_github_home
on GitHub hosted runners the last time I checked.I think the best way for you to provide the
provider_installation
would be to add it using a script in theTERRAFORM_PRE_RUN
environment variable, e.g.