Difference between revisions of "GitLab environments"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
 
     - 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
 
   rules:
 
   rules:
     - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
+
     - if: [[$CI_COMMIT_BRANCH]] == [[$CI_DEFAULT_BRANCH]]
 
       when: never
 
       when: never
     - if: $CI_COMMIT_BRANCH
+
     - if: [[$CI_COMMIT_BRANCH]]
 
 
  
 
== Related ==
 
== Related ==

Revision as of 10:59, 29 July 2022

Advertising: