22# syntax, such as anchors, will be fixed automatically.
33version : 2.1
44orbs :
5- shared :
getoutreach/[email protected] 5+ shared :
getoutreach/[email protected] 6+ queue :
eddiewebb/[email protected] 7+ # # <<Stencil::Block(CircleCIExtraOrbs)>>
8+
9+ # # <</Stencil::Block>>
10+
11+ parameters :
12+ rebuild_cache :
13+ type : boolean
14+ default : false
15+ # # <<Stencil::Block(CircleCIExtraParams)>>
16+
17+ # # <</Stencil::Block>>
618
719# Extra contexts to expose to all jobs below
820contexts : &contexts
921 - aws-credentials
1022 - ghaccesstoken
1123 - docker-registry
1224 - npm-credentials
13- - prismacloud-credentials
14- - opslevel-credentials
25+ - box
1526 - vault-dev
1627 - confluence
28+ - circleci-credentials
29+ - tray-webhooks
30+ - wizcli
1731 # # <<Stencil::Block(extraContexts)>>
1832
1933 # # <</Stencil::Block>>
2034
35+ # Test configs to pass to test and cache jobs
36+ test : &test
37+ context : *contexts
38+ app_name : csv
39+ # ## Start parameters inserted by other modules
40+ # ## End parameters inserted by other modules
41+ # # <<Stencil::Block(circleTestExtra)>>
42+
43+ # # <</Stencil::Block>>
44+
2145# Branches used for releasing code, pre-release or not
2246release_branches : &release_branches
2347 - " main"
2448
49+ # # <<Stencil::Block(circleAnchorExtra)>>
50+
51+ # # <</Stencil::Block>>
52+
2553jobs :
2654 {}
2755 # # <<Stencil::Block(circleJobs)>>
@@ -40,7 +68,27 @@ workflows:
4068 # ## Start workflows inserted by other modules
4169 # ## End workflows inserted by other modules
4270
71+ rebuild-cache :
72+ triggers :
73+ - schedule :
74+ # Every day at 00:00 UTC.
75+ cron : " 0 0 * * *"
76+ filters :
77+ branches :
78+ only :
79+ - main
80+ jobs :
81+ - shared/save_cache : *test
82+
83+ manual-rebuild-cache :
84+ when : << pipeline.parameters.rebuild_cache >>
85+ jobs :
86+ - shared/save_cache : *test
87+
4388 release :
89+ when :
90+ and :
91+ - not : << pipeline.parameters.rebuild_cache >>
4492 jobs :
4593 # # <<Stencil::Block(circleWorkflowJobs)>>
4694
@@ -60,45 +108,37 @@ workflows:
60108 - shared/test
61109 filters :
62110 branches :
63- only : *release_branches
64-
65- # Dryrun release for PRs.
66- - shared/release :
67- << : *release
111+ only : main
112+ # Dryrun for PRs
113+ - shared/pre-release : &pre-release
68114 dryrun : true
115+ context : *contexts
116+ # # <<Stencil::Block(circlePreReleaseDryRunExtra)>>
117+
118+ # # <</Stencil::Block>>
119+ requires :
120+ # # <<Stencil::Block(circlePreReleaseDryRunRequires)>>
121+
122+ # # <</Stencil::Block>>
123+ - shared/test
69124 filters :
70125 branches :
71126 ignore : *release_branches
72127 - shared/test :
73- context : *contexts
74- app_name : csv
75- # ## Start parameters inserted by other modules
76- # ## End parameters inserted by other modules
77- # # <<Stencil::Block(circleTestExtra)>>
128+ << : *test
129+ # # <<Stencil::Block(circleSharedTestExtra)>>
78130
79131 # # <</Stencil::Block>>
80-
81132 - shared/publish_docs :
82133 context : *contexts
83134 filters :
84135 branches :
85- ignore : /.*/
136+ only :
137+ - main
86138 tags :
87- only : /v[0-9]+(\.[0-9]+)*(-.*)*/
88- - shared/finalize-coverage :
89- context : *contexts
90- requires :
91- - shared/e2e
92- - shared/test
139+ only : /v\d+(\.\d+)*(-.*)*/
93140 - shared/e2e :
94141 context : *contexts
95142 # # <<Stencil::Block(circleE2EExtra)>>
96143
97144 # # <</Stencil::Block>>
98- - shared/docker :
99- context : *contexts
100- filters :
101- branches :
102- ignore : *release_branches
103- tags :
104- only : /v\d+(\.\d+)*(-.*)*/
0 commit comments