This repository was archived by the owner on Aug 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ from typing import NewType
2
+
3
+ import dffml
4
+ import dffml_operations_innersource .operations
5
+
6
+
7
+ IsCICDJenkinsLibrary = NewType ("IsCICDJenkinsLibrary" , bool )
8
+ IsCICDGitHubActionsLibrary = NewType ("IsCICDGitHubActionsLibrary" , bool )
9
+ CICDLibrary = NewType ("CICDLibrary" , dict )
10
+
11
+
12
+ @dffml .op (
13
+ stage = dffml .Stage .OUTPUT ,
14
+ )
15
+ def cicd_library (
16
+ self ,
17
+ cicd_jenkins_library : IsCICDJenkinsLibrary ,
18
+ cicd_action_library : IsCICDGitHubActionsLibrary ,
19
+ ) -> CICDLibrary :
20
+ return {
21
+ "cicd-jenkins-library" : cicd_jenkins_library ,
22
+ "cicd-action-library" : cicd_action_library ,
23
+ }
24
+
25
+
26
+ @dffml .op (
27
+ stage = dffml .Stage .OUTPUT ,
28
+ )
29
+ def cicd_jenkins_library (
30
+ self ,
31
+ groovy_file_paths : dffml_operations_innersource .operations .GroovyFileWorkflowUnixStylePath ,
32
+ ) -> IsCICDJenkinsLibrary :
33
+ return bool (groovy_file_paths )
34
+
35
+
36
+ @dffml .op (
37
+ stage = dffml .Stage .OUTPUT ,
38
+ )
39
+ def cicd_action_library (
40
+ self ,
41
+ action_file_paths : dffml_operations_innersource .operations .ActionYAMLFileWorkflowUnixStylePath ,
42
+ ) -> IsCICDGitHubActionsLibrary :
43
+ return bool (action_file_paths )
Original file line number Diff line number Diff line change @@ -23,3 +23,6 @@ OverlayGitHub = alice.please.contribute.recomme
23
23
[dffml.overlays.alice.please.contribute.recommended_community_standards.code_of_conduct]
24
24
OverlayGit = alice.please.contribute.recommended_community_standards.recommended_community_standards:OverlayGit
25
25
OverlayGitHub = alice.please.contribute.recommended_community_standards.recommended_community_standards:OverlayGitHub
26
+
27
+ [dffml.overlays.alice.shouldi.contribute]
28
+ OverlayCICDLibrary = alice.shouldi.contribute.cicd
You can’t perform that action at this time.
0 commit comments