deployment environment

A named target such as staging or production that a job declares, so GitHub can attach its own variables, secrets and protection rules.

In more detail

The environment is a policy key: it does not create servers and does not make a deploy safe by itself. Protection rules are checked before the job starts, and only then does the job receive environment secrets.

Example

environment:
  name: production
  url: https://checkout.example

Related terms

Taught in

References

Certification courses