Cheat Sheet for DevOps: .gitlab-ci.yml (GitLab)

In this series, I proposes cheatsheets for DevOps . This one is about the .gitlab-ci.yml file of GitLab.

Pipeline structure

Execute a script

<job-name>:
script:
- uname -a

Execute a script before or after a job

default:
before_script:
- <global-before-script>
<job-name>:
before_script:
- <job-level-before-script>
script:
- …
after_script:
- <job-level-after-script>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bruno Delb

Bruno Delb

Blockchains, DevOps, Agile Coaching, development, testing, Cloud, Management 3.0, ITIL. It defines me.