GitLab environments

From wikieduonline
Revision as of 10:45, 13 October 2022 by Ant (talk | contribs) (→‎News)
Jump to navigation Jump to search

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

Related

See also

Advertising: