Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions dev_guide/deployments.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ it had when it failed.
Rollbacks revert an application back to a previous deployment and can be
performed using the REST API or the CLI.

To rollback to a previous deployment:
To rollback to the last successful deployment:

----
$ oc rollback <deployment>
$ oc rollback <deployment_config>
----

The deployment configuration's template will be reverted to match the
Expand All @@ -198,6 +198,18 @@ complete. To re-enable the image change triggers:
$ oc deploy <deployment_config> --enable-triggers
----

To roll back to a specific version:

----
$ oc rollback <deployment_config> --to-version=1
----

To see what the rollback would look like without performing the rollback:

----
$ oc rollback <deployment_config> --dry-run
----

[[triggers]]

== Triggers
Expand Down