{"id":667,"date":"2022-08-09T21:53:04","date_gmt":"2022-08-09T20:53:04","guid":{"rendered":"http:\/\/192.168.1.213:8088\/?page_id=667"},"modified":"2022-08-10T13:37:34","modified_gmt":"2022-08-10T12:37:34","slug":"task-4-first-cicd-pipeline","status":"publish","type":"page","link":"http:\/\/192.168.1.213:8088\/gitlab-cicd-workshop\/task-4-first-cicd-pipeline\/","title":{"rendered":"Task 4: First CI\/CD pipeline"},"content":{"rendered":"\t\t
Alright! This is the moment we have been waiting for. Let’s build the first pipeline.<\/p>
Go to Repository > Files , Click on the + symbol and New File<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
A new window will open with an editor view. The new name of the file is: .gitlab-ci.yml\u00a0<\/strong><\/p> Please copy and paste the filename. Yes, it is starting with a . (dot)<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t In the editor window, copy and paste the following content and submit the changes:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t What exactly are we doing here?!\u00a0<\/p> \u00a0<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Whenever you are submitting changes in the entire repository, the pipeline will be triggered! Let’s check the status of the pipeline execution. Click on CI\/CD<\/strong> and Pipelines\u00a0<\/strong>then click on the (hopefully\ud83d\ude09) passed pipeline execution.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Click on each job to see what exactly has been executed in the each job:<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t Go back to CI\/CD and click on Editor. Try to experiment and get familiar with the syntax of the pipeline code.\u00a0<\/p> Try to do the following steps:<\/p> As a command reference you can go to the following GitLab documentation:<\/span><\/p>Content of the pipeline file<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
Explanation<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Check the pipeline execution<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Docker execution output<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
Shell execution output<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
References<\/h5>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t