Difference between revisions of "GitLab environments"
Jump to navigation
Jump to search
↑ https://docs.gitlab.com/ee/ci/environments/#types-of-environments
↑ https://about.gitlab.com/releases/2020/02/22/gitlab-12-8-released/#automatically-stop-environments-after-a-specified-period
↑ https://about.gitlab.com/releases/2019/11/22/gitlab-12-5-released/#environments-dashboard
(→News) |
|||
Line 9: | Line 9: | ||
script: | script: | ||
- echo "Deploy a review app" | - echo "Deploy a review app" | ||
− | environment: | + | [[environment:]] |
name: review/[[$CI_COMMIT_REF_SLUG]] | name: review/[[$CI_COMMIT_REF_SLUG]] | ||
url: https://$CI_ENVIRONMENT_SLUG.example.com | url: https://$CI_ENVIRONMENT_SLUG.example.com |
Revision as of 11:12, 31 October 2022
- https://docs.gitlab.com/ee/ci/environments/
- Static and dynamic environments[1]
Dynamic environment official example
deploy_review: stage: deploy script: - echo "Deploy a review app" environment: name: review/$CI_COMMIT_REF_SLUG url: https://$CI_ENVIRONMENT_SLUG.example.com rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH when: never - if: $CI_COMMIT_BRANCH
News
- Feb 2020 GitLab 13.10 Deploy tier of environments https://docs.gitlab.com/ee/ci/environments/#deployment-tier-of-environments
- Feb 2019 GitLab 12.8, Automatically stop environments after a specified period[2]
auto_stop_in: 1 week
- Nov 2019 GitLab 12.5, Environment dashboards[3]
- Apr 2019 GitLab 11.10 https://docs.gitlab.com/ee/ci/environments/#stop-an-environment-when-a-merge-request-is-merged-or-closed
Related
- Opstrace observability distribution
- GitLab environment variables
See also
- GitLab environments,
environment:
, scope,action:
,auto_stop_in
- GitLab CI, variables, templates, executors,
.gitlab-ci.yml, .gitlab/
, Credential helpers, notifications, pipeline editor, Keyword reference, Changelog,ContainersNotReady
, GitLab environments - GitLab: Install GitLab, Upgrade GitLab Gitlab runner (changelog),
gitlab.rb, .gitlab/, gitlab-ci.yml
,gitlab-ctl, gitlab-rake, gitlab-backup, gitlab-rails
, GitLab editions, GitLab Security Dashboards, GitLab environments, GitLab environment variables, Auto DevOps, permissions, GitLab Pages,gitlab-rails
, GitLab scheduled pipelines, GitLab logs, GitLab changelog , GitLab Release CLI, GitLab Omnibus, GitLab Advanced Search, GitLab container registry, GitLab infrastructure registry
Advertising: