Skip to content

Commit 6fa46e6

Browse files
committed
chore(ci): Add triggerable workflow to CircleCI
1 parent 49db1e8 commit 6fa46e6

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.circleci/config.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ aliases:
9292
- &src "/tmp/src/petprep"
9393
orbs:
9494
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: ""
95108

96109
jobs:
97110
build_clean:
@@ -428,6 +441,25 @@ jobs:
428441
steps:
429442
- run: echo Deploying!
430443

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+
431463
workflows:
432464
version: 2
433465
build_from_scratch:
@@ -444,6 +476,11 @@ workflows:
444476
context:
445477
- nipreps-common
446478

479+
github:
480+
when: << pipeline.parameters.GHA_Action >>
481+
jobs:
482+
- pull_image
483+
447484
build_test_deploy:
448485
jobs:
449486
- build:

0 commit comments

Comments
 (0)