2016-09-27 14:52:34 +00:00
< div class = "manage-trigger-custom-git-element manage-trigger-control" >
2017-02-21 23:59:26 +00:00
< linear-workflow
done-title="Create Trigger"
2017-04-05 21:14:08 +00:00
(on-workflow-complete)="$ctrl.activateTrigger.emit({config: $ctrl.config})">
2016-09-27 14:52:34 +00:00
<!-- Section: Repository -->
2017-02-22 23:44:20 +00:00
< linear-workflow-section class = "row"
2017-02-21 23:59:26 +00:00
section-id="repo"
section-title="Git Repository"
2017-02-22 23:44:20 +00:00
section-valid="$ctrl.config.build_source !== undefined">
2016-09-27 14:52:34 +00:00
< div class = "col-lg-7 col-md-7 col-sm-12 main-col" >
< h3 > Enter repository< / h3 >
2017-02-21 23:59:26 +00:00
< strong > Please enter the HTTP or SSH style URL used to clone your git repository:< / strong >
2016-09-27 14:52:34 +00:00
< input class = "form-control" type = "text" placeholder = "git@example.com:namespace/repository.git"
2017-02-18 05:35:33 +00:00
ng-model="$ctrl.config.build_source"
ng-pattern="/(((http|https):\/\/)(.+)|\w+@(.+):(.+))/">
2016-09-27 14:52:34 +00:00
< / div >
< div class = "col-lg-5 col-md-5 hidden-sm hidden-xs help-col" >
< p > Custom git triggers support any externally accessible git repository, via either the normal git protocol or HTTP.< / p >
< p > < b > It is the responsibility of the git repository to invoke a webhook to tell < span class = "registry-name" short = "true" > < / span > that a commit has been added.< / b > < / p >
< / div >
2017-02-21 23:59:26 +00:00
< / linear-workflow-section > <!-- /Section: Repository -->
2016-09-27 14:52:34 +00:00
<!-- Section: Build context -->
2017-02-22 23:44:20 +00:00
< linear-workflow-section class = "row"
2017-02-21 23:59:26 +00:00
section-id="dockerfile"
section-title="Build context"
2017-04-04 18:51:54 +00:00
section-valid="$ctrl.config.context">
2016-09-27 14:52:34 +00:00
< div class = "col-lg-7 col-md-7 col-sm-12 main-col" >
< h3 > Select build context directory< / h3 >
2017-02-18 05:35:33 +00:00
< strong > Please select the build context directory under the git repository:< / strong >
2017-05-15 15:44:45 +00:00
< input class = "form-control" type = "text"
2017-04-04 18:51:54 +00:00
ng-model="$ctrl.config.context"
2017-02-18 05:35:33 +00:00
ng-pattern="/^($|\/|\/.+)/">
2016-09-27 14:52:34 +00:00
< / div >
< div class = "col-lg-5 col-md-5 hidden-sm hidden-xs help-col" >
< p > The build context directory is the path of the directory containing the Dockerfile and any other files to be made available when the build is triggered.< / p >
< p > If the Dockerfile is located at the root of the git repository, enter < code > /< / code > as the build context directory.< / p >
< / div >
2017-02-21 23:59:26 +00:00
< / linear-workflow-section > <!-- /Section: Build context -->
2017-04-04 18:51:54 +00:00
<!-- Section: Dockerfile Location -->
< linear-workflow-section class = "row"
section-id="dockerfilelocation"
section-title="Select Dockerfile"
section-valid="$ctrl.config.dockerfile_path">
< div class = "col-lg-7 col-md-7 col-sm-12 main-col" >
< h3 > Select dockerfile path< / h3 >
< strong > Please select the build context directory under the git repository:< / strong >
2017-05-15 15:44:45 +00:00
< input class = "form-control" type = "text"
2017-04-04 18:51:54 +00:00
ng-model="$ctrl.config.dockerfile_path"
ng-pattern="/^($|\/|\/.+)/">
< / div >
< div class = "col-lg-5 col-md-5 hidden-sm hidden-xs help-col" >
< p > The dockerfile path stars with the context and ends with the path to the dockefile that you would like to build< / p >
< p > If the Dockerfile is located at the root of the git repository and named Dockerfile, enter < code > /Dockerfile< / code > as the dockerfile path.< / p >
< / div >
< / linear-workflow-section > <!-- /Section: Dockerfile Location -->
2017-02-21 23:59:26 +00:00
< / linear-workflow >
2017-02-18 05:35:33 +00:00
< / div >