A docker image built from the official terraform docker image, then ruby, python, kitchen-terraform, and the packages in the Gemfile installed in next layers.
The tag of the docker images saved to ghcr.io match the version of terraform used in the Dockerfile
See terraform-test.yml for usage in a github actions workflow.
Expected secrets:
GCP_BILLING_ACCOUNT: GCP billing account number for test projectGCP_ORG_ID: GCP organization id for test projectGCP_FOLDER_ID: GCP folder id for test projectGCP_CREDENTIAL_JSON: contents of GCPcredentials.jsonfile
In the workflow, many of these secrets are assigned to environment variables starting with TF_VAR. These will be used as terraform variables when running the tests.
Please create a feature branch from main. Upon PR, the image will be build. Once the PR is merged to main, the built image will be uploaded to ghcr.io using the version of terraform used in the Dockerfile as the tag number.