mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-07 09:46:53 +01:00
18 lines
495 B
Plaintext
18 lines
495 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * applications/deployments/managing-deployment-processes.adoc
|
|
|
|
[id="deployments-setting-triggers_{context}"]
|
|
= Setting deployment triggers
|
|
|
|
.Procedure
|
|
|
|
. You can set deployment triggers for a DeploymentConfig using the `oc set triggers`
|
|
command. For example, to set a `ImageChangeTrigger`, use the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc set triggers dc/<dc_name> \
|
|
--from-image=<project>/<image>:<tag> -c <container_name>
|
|
----
|