diff options
author | Adam Niedzielski <adamsunday@gmail.com> | 2016-12-21 16:21:55 +0100 |
---|---|---|
committer | Adam Niedzielski <adamsunday@gmail.com> | 2016-12-21 16:21:55 +0100 |
commit | 9809a9af8a3980f8a65262295cfd9701e793ac11 (patch) | |
tree | 7f7f392a203798b2cbebba6c08f8875c433ca4f0 /app/views | |
parent | 528c3e2b8d2d65257e489601220f34b918b80e17 (diff) | |
download | gitlab-ce-9809a9af8a3980f8a65262295cfd9701e793ac11.tar.gz |
Introduce "Set up autodeploy" button to help configure GitLab CI for deploymentadam-auto-deploy
The button allows to choose a ".gitlab-ci.yml" template that automatically
sets up the deployment of an application.
The currently supported template is Kubernetes template.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/show.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 8a214e1de58..a915c159cb4 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -68,6 +68,10 @@ - if koding_enabled? && @repository.koding_yml.blank? %li.missing = link_to 'Set up Koding', add_koding_stack_path(@project) + - if @repository.gitlab_ci_yml.blank? && @project.deployment_service.present? + %li.missing + = link_to add_special_file_path(@project, file_name: '.gitlab-ci.yml', commit_message: 'Set up autodeploy', target_branch: 'autodeploy', context: 'autodeploy') do + Set up autodeploy - if @repository.commit .project-last-commit{ class: container_class } |