The video for this lesson is currently being updated, please read the transcript instead.

Completing CD workflow

Returning to our continuous deployment script, let's now add the final job to our pipeline which is the deploy job.

So let's create a new top-level property deploy. We'll then give this a key stage and set that to deploy. We'll also add an only key and give it an array member deploy as well.

.gitlab-ci.yml

deploy:
  stage: deploy
  only:
  - deploy

Setting environment variables

To view the complete lesson you'll need to login or join this course.


Click to load comments...