GitLab environments

From wikieduonline
Revision as of 11:14, 31 October 2022 by Ant (talk | contribs) (→‎Dynamic environment official example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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: