Monday, February 14, 2022

Gitlab - variables

 

Predefined variables

demo_job:

  script:

    - echo $CI_COMMIT_MESSAGE

    - echo $CI_JOB_NAME


Custom Variables


variables:

    name: 'John'

    message: 'How are you?'


display_message:

    variables:

        name: 'Mark'

    script:

        - echo "Hello $name, $message"

0 comments:

Post a Comment