custom trigger: tag with git sha
This commit is contained in:
parent
4ceb68d568
commit
ed88e76843
1 changed files with 2 additions and 7 deletions
|
@ -635,13 +635,8 @@ class CustomBuildTrigger(BuildTrigger):
|
||||||
|
|
||||||
config = get_trigger_config(trigger)
|
config = get_trigger_config(trigger)
|
||||||
dockerfile_id = None
|
dockerfile_id = None
|
||||||
branch = run_parameters.get('branch_name', None)
|
tags = {run_parameters['commit_sha']}
|
||||||
|
build_name = run_parameters['commit_sha']
|
||||||
tags = {branch}
|
|
||||||
if branch == 'master':
|
|
||||||
tags.add('latest')
|
|
||||||
|
|
||||||
build_name = 'HEAD'
|
|
||||||
metadata = {
|
metadata = {
|
||||||
'commit_sha': run_parameters['commit_sha'],
|
'commit_sha': run_parameters['commit_sha'],
|
||||||
'git_url': config['build_source'],
|
'git_url': config['build_source'],
|
||||||
|
|
Reference in a new issue