This repo contains the Dockerfile for building the default Spacelift Terraform runner image.
The image is pushed to the public.ecr.aws/spacelift/runner-terraform
public repository. It
is also pushed to the ghcr.io/spacelift-io/runner-terraform
as a backup in case of issues
with ECR.
We publish three images. The default has aws
CLI v2 included, the others
gcloud
and az
respectively.
This is because gcloud
and az
are very large packages and we want to keep the image size down.
spacelift-io/runner-terraform:latest
-> withaws
CLIspacelift-io/runner-terraform:gcp-latest
-> withgcloud
CLIspacelift-io/runner-terraform:azure-latest
-> withaz
CLI
All changes merged to main
branch are automatically built and pushed to the Docker repository with the future
tag.
Once it is considered stable, we can release it as latest
by creating a tag (semver) and pushing it to the
repository. Example:
$ git tag -a v1.1.0 -m "Release v1.1.0"
$ git push origin v1.1.0
We also have a weekly cron job that re-runs the main
branch just to have the latest package updates.