custom trigger: fix git url regex
This commit is contained in:
parent
92a7e843fc
commit
15ffec4678
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
<td>Dockerfile Location:</td>
|
||||
<td>
|
||||
<div class="dockerfile-location">
|
||||
<i class="fa fa-folder fa-lg"></i> {{ state.subdir == '/' || !state.subdir ? '(Repository Root)' : subdir }}
|
||||
<i class="fa fa-folder fa-lg"></i> {{ state.subdir || '/' }}
|
||||
</div>
|
||||
</td>
|
||||
</table>
|
||||
|
@ -23,9 +23,9 @@
|
|||
<!-- Git URL Input -->
|
||||
<div class="step-view-step" complete-condition="trigger['config']['build_source']" load-callback="nopLoad(callback)"
|
||||
load-message="Loading Git URL Input">
|
||||
<div style="margin-bottom: 12px;">Please enter the URL used to clone your git repository:</div>
|
||||
<input class="form-control" type="text" placeholder="git://example.com/namespace/repository.git" style="width: 100%;"
|
||||
ng-model="state.build_source" ng-pattern="/(git|http|https):\/\/(.+)(\.git)/">
|
||||
<div style="margin-bottom: 12px;">Please enter an HTTP or SSH style URL used to clone your git repository:</div>
|
||||
<input class="form-control" type="text" placeholder="git@example.com:namespace/repository.git" style="width: 100%;"
|
||||
ng-model="state.build_source" ng-pattern="/(((http|https):\/\/)(.+)|\w+@(.+):(.+))/">
|
||||
</div>
|
||||
|
||||
<!-- Dockerfile folder select -->
|
||||
|
|
Reference in a new issue