Difference between revisions of "GitLab environments"

From wikieduonline
Jump to navigation Jump to search
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
 
 
* https://docs.gitlab.com/ee/ci/environments/
 
* https://docs.gitlab.com/ee/ci/environments/
 +
* Static and dynamic environments<ref>https://docs.gitlab.com/ee/ci/environments/#types-of-environments</ref>
  
 
* <code>[[environment:]]</code>
 
* <code>[[environment:]]</code>
Line 7: Line 6:
 
== Dynamic environment official example ==
 
== Dynamic environment official example ==
  
deploy_review:
+
{{dynamic env}}
  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 release notes/Changelog|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<ref>https://about.gitlab.com/releases/2020/02/22/gitlab-12-8-released/#automatically-stop-environments-after-a-specified-period</ref> <code>[[auto_stop_in:]] 1 week</code>
 +
* Nov 2019 [[GitLab 12.5]], Environment [[dashboards]]<ref>https://about.gitlab.com/releases/2019/11/22/gitlab-12-5-released/#environments-dashboard</ref>
 +
* Apr 2019 [[GitLab 11.10]] https://docs.gitlab.com/ee/ci/environments/#stop-an-environment-when-a-merge-request-is-merged-or-closed
  
 
== Related ==
 
== Related ==
* [[Opstrace]]
+
* [[Opstrace]] [[observability]] distribution
 +
* [[GitLab environment variables]]
  
 
== See also ==
 
== See also ==
 +
* {{GitLab environments}}
 +
* {{GitLab CI}}
 
* {{GitLab}}
 
* {{GitLab}}
  
 
[[Category:GitLab]]
 
[[Category:GitLab]]

Latest revision as of 11:14, 31 October 2022

Dynamic environment official example[edit]

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[edit]

Related[edit]

See also[edit]

  • 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
  • Advertising: