CI/CD·CI/CD essentials

Environments

Separate staging and production with approvals.

Beginner 10 min read Lesson 4 of 150 Challenge included
What you will be able to do
  • Use environment protection.
  • Require approvals for production.
  • Keep secrets scoped.

In plain English

Separate staging and production with approvals.

  • Use environment protection.
  • Require approvals for production.
  • Keep secrets scoped.
deploy.ymlYAML
jobs:
  deploy:
    environment: production
    steps:
      - run: ./deploy.sh
Your turn

Explain it back

Easy

Answer from memory: What protects a production environment?

TEXT · starter
Your answer…
Check your understanding before moving on.
Knowledge checkQuestion 1

What protects a production environment?

Select an answer to continue
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Next: Rollbacks
Lesson 4 of 150 · 0% of course