A release is almost ready. Run the artifact in staging, a practice environment designed to resemble the service users will rely on. This helps you check the release against realistic settings before exposing it to production traffic.
Deployment · Lesson 3
Staging
Learn what staging can verify and why the same artifact can behave differently across environments.
Promoting the Same Artifact
Use the image that was tested and approved. If you build it again from changing dependencies, you may get a different artifact. Record the full image reference in each deployment.
Environment Artifact Page configuration
staging site@digest-A Internal preview
production site@digest-A Public website
The example uses a symbolic digest. The artifact is the same and the settings differ.
What shows that the same packaged code can be promoted to production?
Choosing Representative Checks
Staging should let you exercise important behavior, such as loading the page and reading from a test dependency. Use authorized test accounts and test data. A successful staging check increases confidence about the scenario tested. Differences in traffic, data, or configuration can still matter after promotion.
The staging page loads using a test database. What should you still verify after a real deployment?
Checking the Target Before Changing It
Read the target name and address before you apply a deployment. Afterward, use the same address to confirm the new version and important behavior. Keep staging and production details visible in your notes so a result has clear context.
You plan to deploy to staging. The command shows the production address. What should you do first?
For a hands-on CI/CD example, see Continuous Deployment to Staging.
Lesson complete
You finished Staging
You can now use staging to check an approved artifact before promotion.
Keep the identity of the artifact across environments.
Choose checks that represent important user behavior.
Confirm the environment before changing it.
Keep your learning progress
Create a free account to save this lesson and continue learning on any device.
Create a free account