Skip to content

Commit

Permalink
Merge pull request #22 from parodos-dev/revert_standar_event_producer
Browse files Browse the repository at this point in the history
Revert "Use standard event producer"
  • Loading branch information
gabriel-farache authored Jan 18, 2024
2 parents b9ed5f0 + 7ef877c commit 564c7b3
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions move2kube/m2k.sw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ events:
- name: transformationSavedEvent
source: ''
type: transformation_saved
- name: saveTransformation
source: m2k_swf
type: save-transformation
kind: produced
functions:
- name: systemOut
type: custom
Expand Down Expand Up @@ -102,18 +98,23 @@ states:
topic: "Move2Kube Workflow"
transition: SaveTransformationOutput
- name: SaveTransformationOutput
type: inject
data:
gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\"))
branch: .targetBranch
token: .token
workspaceId: .workspaceId
projectId: .projectId
transformId: .transformId
workflowCallerId: $WORKFLOW.instanceId
end:
produceEvents:
- eventRef: saveTransformation
type: operation
actions:
- functionRef:
refName: sendCloudEvent
arguments:
HEADER_Ce-Id: $WORKFLOW.instanceId
HEADER_Ce-Specversion: "1.0"
HEADER_Ce-Type: "save-transformation"
HEADER_Ce-Source: "m2k_swf"
HEADER_Content-Type: "application/json"
gitRepo: (.repositoryURL|sub(\"http(s)?://\";\"ssh://\"))
branch: .targetBranch
token: .token
workspaceId: .workspaceId
projectId: .projectId
transformId: .transformId
workflowCallerId: $WORKFLOW.instanceId
transition: WaitForSaveTransformationCompletion
- name: WaitForSaveTransformationCompletion
type: switch
Expand Down

0 comments on commit 564c7b3

Please sign in to comment.