mirror of
https://github.com/DerDavidBohl/dirigent-spring.git
synced 2026-05-24 02:42:30 -05:00
Push RecreateAllDeploymentStatesEvent when config file updates
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
package org.davidbohl.dirigent.deployments.api;
|
||||
|
||||
import org.davidbohl.dirigent.deployments.events.AllDeploymentsStartRequestedEvent;
|
||||
import org.davidbohl.dirigent.deployments.events.RecreateAllDeploymentStatesEvent;
|
||||
import org.davidbohl.dirigent.deployments.events.SourceDeploymentStartRequestedEvent;
|
||||
import org.davidbohl.dirigent.deployments.models.GiteaRequestBody;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
@@ -27,7 +27,7 @@ public class GiteaDeploymentsController {
|
||||
public void webHook(@RequestBody GiteaRequestBody body) {
|
||||
|
||||
if(body.repository().cloneUrl().equals(configUrl)) {
|
||||
applicationEventPublisher.publishEvent(new AllDeploymentsStartRequestedEvent(this, true, false));
|
||||
applicationEventPublisher.publishEvent(new RecreateAllDeploymentStatesEvent(this));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user