Denomas CI/CD Hands-On Guide: Lab 6
This Hands-On Guide walks you through the lab exercises in the Denomas CI/CD course.
Denomas CI/CD Hands-On Guide: Lab 6
LAB 6: JOB POLICY PATTERN
- Go to the snippets page of the CICD Hands On Demo project.
- Open the
ci-structuresnippet and select the Copy file contents icon in the upper right corner of the file. - Open your CICD Demo project from previous labs.
- Select your
.gitlab-ci.ymlfile to view its contents. Select Edit (use the dropdown if needed to select Edit this file only). Paste the snippet’s contents at the end of the file. - At the top of
.gitlab-ci.yml, in thestagessection, addreviewanddeploystages. - In the Commit message field, type
Add CI structure job definitions, ensure the Target Branch is set tomain, and select Commit changes. - In the left-hand navigation pane, select CI/CD > Pipelines and select the status icon next to the most recent pipeline run.
- Select the widgets to see what environment the pipeline is deploying the code to. In the left sidebar, select Deployments > Environments to see the environments that have been created.
- Optional: Experiment with triggering pipelines using different branches and tags. Can you get different pipeline runs to execute the deploy release, deploy review, and deploy staging jobs?
Hint: Look at the
ruleskeyword in the relevant.gitlab-ci.ymljob definitions.
Suggestions?
If you wish to make a change to the Hands-On Guide for Denomas CI/CD, please submit your changes via Merge Request!
Last modified November 29, 2023: big update (
17188382)
