gitlab-org--gitlab-foss/doc/ci
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
..
api Update CI API docs 2016-06-14 14:47:32 +02:00
build_artifacts fix typo 2016-04-10 21:16:06 +00:00
docker Remove our 2016-06-13 22:47:54 -07:00
examples Fix more references to old gitlab-runner 2016-06-13 22:06:13 -07:00
img Add documentation on enabling/disabling GitLab CI 2016-01-06 20:18:27 +01:00
permissions Groundwork for merging CI into CE 2015-08-25 18:42:46 -07:00
quick_start Merge branch 'patch-1' into 'master' 2016-05-18 17:35:16 +00:00
runners Fix more references to old gitlab-runner 2016-06-13 22:06:13 -07:00
services Update Docker Hub links. 2016-05-07 13:29:24 +09:00
ssh_keys fix: in recent versions of Docker, the /.dockerinit file doesn't exist; use /.dockerenv instead [ci skip] 2016-04-26 21:41:52 -04:00
triggers Merge branch 'doc-broken-links' into 'master' 2016-05-19 17:32:04 +00:00
variables Document CI_BUILD_TOKEN 2016-06-14 21:26:38 -07:00
yaml Merge remote-tracking branch 'origin/master' into environments-and-deployments 2016-06-14 16:19:29 +02:00
enable_or_disable_ci.md Fix incorrect gitlab.rb variable in CI docs 2016-03-11 21:26:18 +02:00
README.md Update CI API docs 2016-06-14 14:47:32 +02:00