terraform-github-actions
terraform-github-actions copied to clipboard
Run action from a custom image
Suggestion
currently all actions run from a dflook built image. TERRAFORM_PRE_RUN has to constantly run to install specific packages.
im thinking on an image: input where we can point to a custom image on our docker repo.
Hello @httpdss, I'd love to add this but I don't think it's possible. The metadata format doesn't allow image to reference input or environment variables 😞.
Is there still no way to achieve this? I would like to use this action but my terraform requires the AWS cli be installed inside the docker container.
@jonathan-d-palumbo The TERRAFORM_PRE_RUN environment variable will let you install the aws cli, the downside is it needs to run for every step. There is still no way I know of the use a custom image with it pre-installed.
@dflook Thanks for your response. Much appreciated, I suppose if needed I can always fork the repository. It seems excessive but I'm not sure I want to install AWS each time the action runs either.
I've written up the options available for customising the image here.
You da man dflook! Thank you.