File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,19 @@ aliases:
92
92
- &src "/tmp/src/petprep"
93
93
orbs :
94
94
docker :
circleci/[email protected]
95
+ parameters :
96
+ GHA_Actor :
97
+ type : string
98
+ default : " "
99
+ GHA_Action :
100
+ type : string
101
+ default : " "
102
+ GHA_Event :
103
+ type : string
104
+ default : " "
105
+ GHA_Meta :
106
+ type : string
107
+ default : " "
95
108
96
109
jobs :
97
110
build_clean :
@@ -428,6 +441,25 @@ jobs:
428
441
steps :
429
442
- run : echo Deploying!
430
443
444
+ pull_image :
445
+ << : *machine_defaults
446
+ environment :
447
+ GHA_Actor : << pipeline.parameters.GHA_Actor >>
448
+ GHA_Event : << pipeline.parameters.GHA_Event >>
449
+ GHA_Action : << pipeline.parameters.GHA_Action >>
450
+ GHA_Meta : << pipeline.parameters.GHA_Meta >>
451
+ REVISION : << pipeline.git.revision >>
452
+ steps :
453
+ - checkout
454
+ - run :
455
+ name : Print parameters
456
+ command : |
457
+ echo $GHA_Actor
458
+ echo $GHA_Event
459
+ echo $GHA_Action
460
+ echo $GHA_Meta
461
+ echo $REVISION
462
+
431
463
workflows :
432
464
version : 2
433
465
build_from_scratch :
@@ -444,6 +476,11 @@ workflows:
444
476
context :
445
477
- nipreps-common
446
478
479
+ github :
480
+ when : << pipeline.parameters.GHA_Action >>
481
+ jobs :
482
+ - pull_image
483
+
447
484
build_test_deploy :
448
485
jobs :
449
486
- build :
You can’t perform that action at this time.
0 commit comments