Updated
On this page
Docker release target using a VERSION file as source of truth, with opt-in activation via config and image publishing to a registry.
#rlsbl.targets.docker
#rlsbl.targets.docker
Docker release target using a VERSION file as source of truth, with opt-in activation via config and image publishing to a registry.
#DockerTarget
Release target for Docker projects (Dockerfile + VERSION file).
#name
def name(self)#read_name
def read_name(self, dir_path, ctx)Return image name from config or directory name.
#read_version
def read_version(self, dir_path)Read version from the VERSION file.
#write_version
def write_version(self, dir_path, version, ctx)Write the new version to the VERSION file atomically.
Returns a list of relative file paths that were modified.
#version_file
def version_file(self, dir_path=None)#tag_format
def tag_format(self, version)#template_dir
def template_dir(self)#template_vars
def template_vars(self, dir_path, ctx)Extract template variables from config and git.
#template_mappings
def template_mappings(self, ctx)#check_project_exists
def check_project_exists(self, dir_path)#get_project_init_hint
def get_project_init_hint(self)