Skip to content

Commit fc91cee

Browse files
oestebaneffigies
authored andcommitted
fix: setup CircleCI context
1 parent 7d339bd commit fc91cee

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.circleci/config.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ jobs:
131131
--exclude='freesurfer/subjects/sample-*.mgz' \
132132
--exclude='freesurfer/subjects/V1_average' \
133133
--exclude='freesurfer/trctrain'
134-
echo "b2VzdGViYW5Ac3RhbmZvcmQuZWR1CjMwNzU2CiAqQ1MzYkJ5VXMxdTVNCiBGU2kvUGJsejJxR1V3Cg==" | base64 -d > /tmp/freesurfer/license.txt
134+
pushd /tmp/freesurfer
135+
echo "${FS_LICENSE_CONTENT}" | base64 -d | sh
135136
else
136137
echo "FreeSurfer was cached."
137138
circleci step halt
@@ -388,8 +389,8 @@ jobs:
388389
name: Deploy to Docker Hub
389390
no_output_timeout: 40m
390391
command: |
391-
if [[ -n "$DOCKER_PASS" ]]; then
392-
docker login -u $DOCKER_USER -p $DOCKER_PASS
392+
if [[ -n "$DOCKER_PAT" ]]; then
393+
docker login -u $DOCKER_USER -p $DOCKER_PAT
393394
docker push nipreps/sdcflows:latest
394395
docker tag nipreps/sdcflows nipreps/sdcflows:$CIRCLE_TAG
395396
docker push nipreps/sdcflows:$CIRCLE_TAG
@@ -465,6 +466,9 @@ workflows:
465466
build_deploy:
466467
jobs:
467468
- cache_test_data:
469+
context:
470+
- nipreps-common
471+
- fs-license
468472
filters:
469473
branches:
470474
ignore:
@@ -483,6 +487,8 @@ workflows:
483487
only: /.*/
484488

485489
- test_package:
490+
context:
491+
- nipreps-common
486492
filters:
487493
branches:
488494
ignore:
@@ -492,6 +498,8 @@ workflows:
492498
only: /.*/
493499

494500
- deploy_pypi:
501+
context:
502+
- nipreps-common
495503
requires:
496504
- build_docs
497505
- test_package
@@ -503,6 +511,8 @@ workflows:
503511
only: /.*/
504512

505513
- deploy_docker:
514+
context:
515+
- nipreps-common
506516
requires:
507517
- deploy_pypi
508518
filters:

0 commit comments

Comments
 (0)