Skip to content

spacelift-io/runner-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Runner Image

This repo contains the Dockerfile for building the default Spacelift Terraform runner image.

Docker Repository

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.

Images

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 -> with aws CLI
  • spacelift-io/runner-terraform:gcp-latest -> with gcloud CLI
  • spacelift-io/runner-terraform:azure-latest -> with az CLI

Branch Model

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.