generate-tag

Generate a tag for an image based on its contents

Synopsis

Generate a container image tag, artifact name, and URL-encoded artifact name.

The tag is assembled from the provided parameters in the following order: [-][-][-][]

All parts are optional. Omit --architecture to get a plain version tag (e.g. "21" instead of "21-amd64"). Use --imageSuffix to produce multiple images from a single build (e.g. java-base and java-debian). The ref flag is typically set from $CI_COMMIT_REF_SLUG; forward slashes are replaced with hyphens.

The command prints three lines to stdout: IMAGE_TAG= ARTIFACT_NAME= ARTIFACT_URL_ENCODED=

Examples

Options

Options inherited from parent commands

Have feedback? We want to hear from you!

Fields marked with * are required