gitlab-org--gitlab-foss/app/views/layouts
Rémy Coutable be09845914 Merge branch 'environments-and-deployments' into 'master'
Add environments and deployments

This MR is a continuation of https://gitlab.com/gitlab-org/gitlab-ce/issues/17009.

The current implementation is as follow:
1. We have two new tables: `environments` and `deployments`.
2. We have a new tab: `Environments` under `Pipelines` where you can see all you environments and add a new one.
3. We add a new option to `.gitlab-ci.yml` to track where we should create a deployment for environment.
4. If environment in `.gitlab-ci.yml` is specified it will create a deployment. **If environment does not exist it will be created.** (this got changed)
5. The deployment is always successful and shows the time of the action, in that case a build that presumably should do deployment. In the future we could extend deployment with statuses: success, failure. We could extend deployments with information that this is partial or full deployment.
6. User have to create environments that he will track first.
7. User can remove environments.
8. User can retry/rollback past deployment (in that case we retry past build). The new build when succeeds it will create a new deployment.
9. Currently environment have only one parameter: `name`. In the future it should have: `variables`, `credentials` and possibly `runners` and maybe other resources.
10. Currently deployment have this parameters: `sha`, `ref`, `deployable (in this case a build)`, `user (who triggered a deployment)`, `created_at`.

The `.gitlab-ci.yml`:
```
deploy to production:
  stage: deploy
  script: dpl travis...
  environment: production
```

What needs to be done:
- [x] Write initial implementation
- [x] Improve implementation (@ayufan)
- [x] Write tests (@ayufan)
- [x] Improve UX of the forms (cc @markpundsack) - reviewed by @markpundsack
- [x] Improve implementation of the views (cc @jschatz1) - done by @iamphill 
- [x] Write .gitlab-ci.yml documentation for `environments` - done by @ayufan
- [ ] Write user documentation (@ayufan and @markpundsack)

See merge request !4605
2016-06-15 13:48:09 +00:00
..
ci Revert side nav to full width; remove border under nav; remove tooltips on nav links; stop page content shifting with side nav; put project nav in container 2016-06-10 12:01:51 -05:00
header Merge branch 'fix-header-logo-link' into 'master' 2016-06-15 11:37:01 +00:00
nav Merge branch 'environments-and-deployments' into 'master' 2016-06-15 13:48:09 +00:00
_bootlint.haml Bootlint integration 2015-04-01 21:33:22 +02:00
_broadcast.html.haml Update broadcast_message helper 2016-01-13 11:34:58 -05:00
_collapse_button.html.haml Revert side nav to full width; remove border under nav; remove tooltips on nav links; stop page content shifting with side nav; put project nav in container 2016-06-10 12:01:51 -05:00
_flash.html.haml
_google_analytics.html.haml
_head.html.haml Render `gon` data in the page `body`, not `head` 2016-06-06 12:50:31 +05:30
_init_auto_complete.html.haml Only load autocomplete data when actually needed 2016-01-11 11:13:11 +01:00
_page.html.haml Center layout navigation and remove icons 2016-06-11 11:30:53 +03:00
_page_title.html.haml
_piwik.html.haml Update piwik template 2015-11-08 18:03:30 +02:00
_search.html.haml Clicking search pill focuses field 2016-05-24 16:59:18 +01:00
_user_styles.html.haml Use display: inline where appropriate 2015-08-06 14:55:03 +02:00
admin.html.haml Page titles are title case. 2015-12-02 14:06:25 +01:00
application.html.haml Render `gon` data in the page `body`, not `head` 2016-06-06 12:50:31 +05:30
dashboard.html.haml Move project header title definition to view in question. 2015-09-17 12:16:24 +02:00
devise.html.haml Render `gon` data in the page `body`, not `head` 2016-06-06 12:50:31 +05:30
devise_empty.html.haml Render `gon` data in the page `body`, not `head` 2016-06-06 12:50:31 +05:30
devise_mailer.html.haml New confirmation email 🔥 2016-05-25 16:56:06 -04:00
errors.html.haml Render `gon` data in the page `body`, not `head` 2016-06-06 12:50:31 +05:30
explore.html.haml Clean up overlap between dashboard and explore. 2015-09-08 14:49:20 +01:00
group.html.haml Dont specify sidebar for group and group settings layouts 2016-05-03 12:31:50 +02:00
group_settings.html.haml Dont specify sidebar for group and group settings layouts 2016-05-03 12:31:50 +02:00
help.html.haml Add helpers for header title and sidebar, and move setting those from controllers to layouts. 2015-05-01 10:39:16 +02:00
notify.html.haml Syntax-highlight diffs in push emails 2016-05-17 13:23:17 +01:00
profile.html.haml Implement top navigation concept for profile area 2016-04-19 20:05:30 +02:00
project.html.haml Hook up the updated `WikiLinkFilter` to the wiki controllers. 2016-06-09 10:15:01 +05:30
project_settings.html.haml Implement new horizontal navigation to project pages 2016-05-16 12:21:12 -05:00
search.html.haml Add helpers for header title and sidebar, and move setting those from controllers to layouts. 2015-05-01 10:39:16 +02:00
snippets.html.haml Clean up overlap between dashboard and explore. 2015-09-08 14:49:20 +01:00