Difference between revisions of "GitLab CI, environment:"
Jump to navigation
Jump to search
↑ https://docs.gitlab.com/ee/ci/yaml/index.html#environmentaction
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | * https://docs.gitlab.com/ee/ci/yaml/index.html#environment | |
[[name:]] | [[name:]] | ||
Line 5: | Line 5: | ||
[[on_stop]] | [[on_stop]] | ||
[[auto_stop_in]] | [[auto_stop_in]] | ||
− | [[action:]] start | prepare | stop | verify | access <ref>https://docs.gitlab.com/ee/ci/yaml/index.html#environmentaction</ref> | + | [[action:]] start | prepare | [[stop]] | verify | access <ref>https://docs.gitlab.com/ee/ci/yaml/index.html#environmentaction</ref> |
[[kubernetes]] | [[kubernetes]] | ||
[[deployment_tier]] | [[deployment_tier]] | ||
+ | == Examples == | ||
+ | {{Dynamic env}} | ||
== Related == | == Related == | ||
* [[Azure Pipelines]]: <code>[[deployment:]]</code> | * [[Azure Pipelines]]: <code>[[deployment:]]</code> | ||
* [[GitLab environments]] <code>[[environment:]]</code> | * [[GitLab environments]] <code>[[environment:]]</code> | ||
+ | * <code>[[auto_stop_in]]</code> | ||
+ | * [[ENV]] | ||
+ | * [[GitHub Actions env:|env:]] | ||
== See also == | == See also == | ||
* {{GitLab environments}} | * {{GitLab environments}} | ||
− | |||
[[Category:Docker compose]] | [[Category:Docker compose]] |
Latest revision as of 13:42, 16 August 2023
name: url: https://docs.gitlab.com/ee/ci/yaml/index.html#environmenturl on_stop auto_stop_in action: start | prepare | stop | verify | access [1] kubernetes deployment_tier
Examples[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
Related[edit]
See also[edit]
Advertising: