Skip to main content

AwsEcrImageTagModuleSchema

AwsEcrImageTagModuleSchema is the input schema for the AwsEcrImageTagModule module: the image to build and publish, the tag it is published under, and the ECR image whose repositories it goes into.

@group

Modules/Image/AwsEcrImageTag

@see

AwsEcrImageTagModule to learn more about the AwsEcrImageTagModule module.

Index

Properties

architecture

architecture: arm64 | x86_64

The processor the image is built for. A Lambda function or an ECS task running the image runs on it. Like dockerfileDirectory, editing it republishes nothing.

optionalbuildArguments

buildArguments?: Record<string, string> = {}

Values passed to the build as --build-arg, read by the Dockerfile's ARG instructions. They are written into octo's state, so they must not be secrets; pass those as buildSecrets. Like dockerfileDirectory, editing them republishes nothing.

optionalbuildSecrets

buildSecrets?: Record<string, string> = {}

Secrets passed to the build as --secret, read by the Dockerfile's RUN --mount=type=secret. Each key is the secret's id, and each value is the name of the environment variable holding it when octo builds the image. Octo keeps only the names; a variable that is not set fails the build before anything is published. Like dockerfileDirectory, editing them republishes nothing.

dockerfileDirectory

dockerfileDirectory: string

The build context the image is built from, as a path relative to the octo project root. It is relative because an absolute path differs on every machine, and this path is part of what octo commits.

It describes how to build the image, not which image this is. Editing it - or the Dockerfile it points at - republishes nothing, because the tag already published is immutable. Publish the new image under a new tag.

optionaldockerfileName

dockerfileName?: string = 'Dockerfile'

The name of the Dockerfile within dockerfileDirectory. Like dockerfileDirectory, editing it republishes nothing.

image

image: Image

The image this version is published into, from AwsEcrImageModule. It is published into the image's repository in each of its regions.

imageTag

imageTag: string

The tag this version of the image is published under, e.g. 0.0.1. Tags are immutable: another version is another tag, published by another module. This is the only input that decides what is published - changing it publishes the new tag and retires the old one.