Multiline YAML string for GitLab CI (.gitlab-ci.yml)

I came here preemptively expecting this would be an issue but the following “multi-line” command for readability is working for me:

Gitlab Runner: Shell Runner version 1.11.0
/ Gitlab version: 8.17.2

myjob:
stage: deploy
script:
  # Single line command
  - az component update --add sql

  # Multi-line command
  - az sql server create -n ${variable} -g ${variable} -l ${variable}
    --administrator-login ${variable} --administrator-login-password ${variable}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)