Difference between revisions of "GitLab environments"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
* <code>[[environment:]]</code>
 
* <code>[[environment:]]</code>
 +
 +
== 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
 +
  
 
== Related ==
 
== Related ==

Revision as of 10:58, 29 July 2022

Advertising: