custom trigger: tag with git sha

This commit is contained in:
Jimmy Zelinskie 2015-04-08 16:56:47 -04:00
parent 4ceb68d568
commit ed88e76843

View file

@ -635,13 +635,8 @@ class CustomBuildTrigger(BuildTrigger):
config = get_trigger_config(trigger)
dockerfile_id = None
branch = run_parameters.get('branch_name', None)
tags = {branch}
if branch == 'master':
tags.add('latest')
build_name = 'HEAD'
tags = {run_parameters['commit_sha']}
build_name = run_parameters['commit_sha']
metadata = {
'commit_sha': run_parameters['commit_sha'],
'git_url': config['build_source'],