Difference between revisions of "GitLab CI: variables:"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
 
https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
 
https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
 
* [[CI_JOB_STAGE]]
 
* [[CI_JOB_STAGE]]
 +
* [[CI_COMMIT_REF_NAME]]
  
 
== User defined ==
 
== User defined ==

Revision as of 05:31, 5 September 2022

https://docs.gitlab.com/ee/ci/variables/ Variables can be defined inside configuration files or created using UI under Setting -> CI/CD -> Variables

Predefined

https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

User defined

variables:
 DOCKER_CLIENT_TIMEOUT: 120
 COMPOSE_HTTP_TIMEOUT: 120
 CONTAINER_REGISTRY_BASE: "eu.gcr.io/${GOOGLE_PROJECT}"
 DOCKER_HOST: tcp://localhost:2375
 DOCKER_DRIVER: overlay2
 GOOGLE_PROJECT: your-project
 VERSION: "${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHORT_SHA}"
 RELEASE_NAME: "yourapp-${CI_COMMIT_REF_NAME}"

Related

See also

Advertising: