trigger: initial custom git trigger
This commit is contained in:
parent
9c55aca011
commit
998c6007cd
4 changed files with 143 additions and 8 deletions
|
@ -49,6 +49,31 @@ angular.module('quay').factory('TriggerService', ['UtilService', '$sanitize', 'K
|
|||
|
||||
return 'GitHub Repository Push';
|
||||
}
|
||||
},
|
||||
|
||||
'custom': {
|
||||
'description': function(config) {
|
||||
var source = UtilService.textToSafeHtml(config['build_source']);
|
||||
var desc = '<i class"fa fa-git fa-lg" style="margin-left:2px; margin-right: 2px"></i> Push to Custom Git Repository ' + source;
|
||||
desc += '<br>Dockerfile folder: //' + UtilService.textToSafeHtml(config['subdir']);
|
||||
return desc;
|
||||
},
|
||||
'run_parameters': [
|
||||
{
|
||||
'title': 'Branch',
|
||||
'type': 'string',
|
||||
'name': 'branch_name'
|
||||
},
|
||||
{
|
||||
'title': 'Commit SHA1',
|
||||
'type': 'string',
|
||||
'name': 'commit_sha'
|
||||
}
|
||||
],
|
||||
'get_redirect_url': function() {},
|
||||
'is_enabled': function() { return true; },
|
||||
'icon': 'fa-git',
|
||||
'title': function() { return 'Custom Git Repository Push'; }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue