mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-06 07:00:27 -05:00
These are different than our "full" images because they include a binary already released to releases.hashicorp.com, whereas the root Dockerfile directly builds from the current work tree. This particular Dockerfile is not intended to be run manually, but rather exists only to drive the dockerhub automated build.
25 lines
1.1 KiB
Markdown
25 lines
1.1 KiB
Markdown
# Terraform Docker Release Build
|
|
|
|
This directory contains configuration to drive the Dockerhub automated build
|
|
for Terraform. This is different than the root Dockerfile (which produces
|
|
the "full" image on Dockerhub) because it uses the release archives from
|
|
releases.hashicorp.com. It is therefore not possible to use this configuration
|
|
to build an image for a commit that hasn't been released.
|
|
|
|
## How it works
|
|
|
|
Dockerhub runs the `hooks/build` script to trigger the build. That uses
|
|
`git describe` to identify the tag corresponding to the current `HEAD`. If
|
|
the current commit _isn't_ tagged with a version number corresponding to
|
|
a Terraform release already on releases.hashicorp.com, the build will fail.
|
|
|
|
## What it produces
|
|
|
|
This configuration is used to produce the "latest", "light" and "beta" tags
|
|
in Dockerhub, as well as specific version tags.
|
|
|
|
"latest" and "light" are synonyms, and are built from a branch in this
|
|
repository called "stable". "beta" is built from a branch called "beta". Both
|
|
of these branches should be updated only to _tagged_ commits, and only when
|
|
it is desirable to create a new release image.
|