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
python
def name(self)#detect
python
def detect(self, dir_path)#read_name
python
def read_name(self, dir_path)Return image name from config or directory name.
#read_metadata
python
def read_metadata(self, dir_path)Docker projects have no standard metadata in the manifest.
#read_version
python
def read_version(self, dir_path)Read version from the VERSION file.
#write_version
python
def write_version(self, dir_path, version)Write the new version to the VERSION file atomically.
Returns a list of relative file paths that were modified.
#version_file
python
def version_file(self)#tag_format
python
def tag_format(self, version)#publish
python
def publish(self, dir_path, version)Build and push Docker image to the configured registry.
#template_dir
python
def template_dir(self)#template_vars
python
def template_vars(self, dir_path)Extract template variables from config and git.
#template_mappings
python
def template_mappings(self)#check_project_exists
python
def check_project_exists(self, dir_path)#get_project_init_hint
python
def get_project_init_hint(self)